t
This commit is contained in:
@@ -6102,15 +6102,7 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po
|
|||||||
|
|
||||||
echo "Prodotto trovato: " . $product['name'] . "StockQty = " . $product['stock_quantity'] . "<br>";
|
echo "Prodotto trovato: " . $product['name'] . "StockQty = " . $product['stock_quantity'] . "<br>";
|
||||||
|
|
||||||
$prodotti = null;
|
$variations = Variation::all($product_id);
|
||||||
$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);
|
|
||||||
|
|
||||||
if ($variations->count() > 0) {
|
if ($variations->count() > 0) {
|
||||||
|
|
||||||
@@ -6130,9 +6122,6 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
// showarray($variations);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/*foreach ($variations as $variation) {
|
/*foreach ($variations as $variation) {
|
||||||
$found_key_version = array_search('Versione', array_column($variation->attributes, 'name'));
|
$found_key_version = array_search('Versione', array_column($variation->attributes, 'name'));
|
||||||
|
|||||||
Reference in New Issue
Block a user