From d9d66c705e1f949ed5da936d6cf2f96c42042640 Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Sat, 18 May 2024 19:47:19 +0200 Subject: [PATCH] test --- routes/web.php | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 = [];