diff --git a/routes/web.php b/routes/web.php index 3b42f879..0cc29f71 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6079,9 +6079,9 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po echo "Attributi:"; showarray($attributes); - echo "Variazioni:"; + echo "Variazioni:"; - $variations = Variation::all($product_id); + $variations = Variation::where('sku', $product_id)->get(); showarray($variations); } else {