diff --git a/routes/web.php b/routes/web.php index a04ef718..fbef2f28 100644 --- a/routes/web.php +++ b/routes/web.php @@ -6080,6 +6080,16 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po if ($product) { echo "Prodotto trovato: " . $product['name'] . "StockQty = " . $product['stock_quantity'] . "
"; + $variations = Variation::all($product_id); + showarray($variations); + + /*foreach ($variations as $variation) { + $found_key_version = array_search('Versione', array_column($variation->attributes, 'name')); + if ($variation->attributes[$found_key_version]->option == 'Nuovo') { + $id = 0; + } + }*/ + $preordine = true; $data = [];