This commit is contained in:
paoloar77
2024-05-18 20:19:16 +02:00
parent 18d956fc87
commit f804828edc

View File

@@ -6102,15 +6102,7 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po
echo "Prodotto trovato: " . $product['name'] . "StockQty = " . $product['stock_quantity'] . "<br>";
$prodotti = null;
$prodotti = new ModelsProduct();
$prodotti = $prodotti->where('sku', $sku)->get();
$id = 0;
if (!is_null($prodotti) && $prodotti->count() > 0) {
foreach ($prodotti as $prodotto) {
$variations = Variation::all($prodotto->id);
$variations = Variation::all($product_id);
if ($variations->count() > 0) {
@@ -6130,9 +6122,6 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po
}
}
}
// showarray($variations);
}
}
/*foreach ($variations as $variation) {
$found_key_version = array_search('Versione', array_column($variation->attributes, 'name'));