aa
This commit is contained in:
@@ -885,8 +885,14 @@ function getRigaArticoloByArt($article, $ind, $sep)
|
||||
|
||||
$prodotto = Product::where('sku', $sku)->first();
|
||||
|
||||
if ($prodotto) {
|
||||
$permalink = "";
|
||||
|
||||
$qtyinstock = '';
|
||||
$colore = 'black';
|
||||
$prezzo = '';
|
||||
|
||||
if ($prodotto) {
|
||||
try {
|
||||
$qtyinstock = intval($prodotto['stock_quantity']);
|
||||
$prezzo = $prodotto['sale_price'];
|
||||
if (!$prezzo) {
|
||||
@@ -900,6 +906,9 @@ function getRigaArticoloByArt($article, $ind, $sep)
|
||||
}
|
||||
|
||||
$permalink = $prodotto['permalink'];
|
||||
} catch (\Exception $e) {
|
||||
// ...
|
||||
}
|
||||
}
|
||||
|
||||
// echo '[' . $ind . ']' . $sep . $mydatestr . $sep . $article->IdArticolo . $sep . $article->Titolo . $sep . $article->DescrizioneStatoProdotto . $sep . $article->DescrizioneFormato . ' [Quantita = ' . $article->QtaDisponibile . ']';
|
||||
|
||||
Reference in New Issue
Block a user