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>";
|
||||
|
||||
$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'));
|
||||
|
||||
Reference in New Issue
Block a user