diff --git a/routes/web.php b/routes/web.php index 6833758b..7948d5c6 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6201,10 +6201,10 @@ Route::get('/qtanegativa', function () { $mydatestr = $article->DataPubblicazione; - $product_id = $article->IdArticolo; + $sku = $article->IdArticolo; echo '[' . $ind . ']' . $sep . $mydatestr . $sep . $article->Id . $sep . $article->IdArticolo . $sep . $article->Titolo . $sep . $article->DescrizioneStatoProdotto . $sep . $article->DescrizioneFormato . '[Quantita = ' . $article->QtaDisponibile . ']
'; - $prodotto = Product::find($product_id); + $prodotto = Product::where('sku', $sku); if ($prodotto) { $label = $prodotto['_wpro_label_variable']; echo " label=" . $label;