diff --git a/routes/web.php b/routes/web.php index dc27af15..8a6d6230 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6105,7 +6105,7 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po $prodotti = null; $prodotti = new ModelsProduct(); - $prodotti = $prodotti->where('name', $titolo)->get(); + $prodotti = $prodotti->where('sku', $sku)->get(); $id = 0; if (!is_null($prodotti) && $prodotti->count() > 0) {