aa
This commit is contained in:
@@ -131,6 +131,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
|
|||||||
}
|
}
|
||||||
|
|
||||||
$idprodotto = $product['parent_id'];
|
$idprodotto = $product['parent_id'];
|
||||||
|
|
||||||
if ($aggiornapreordine === '1') {
|
if ($aggiornapreordine === '1') {
|
||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
@@ -189,8 +190,8 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
|
|||||||
echo "Aggiornato Preorder: [ParentId=" . $idprodotto . '] ProdId= ' . $product['id'] . ' ' . $variation['name'] . "<br>";
|
echo "Aggiornato Preorder: [ParentId=" . $idprodotto . '] ProdId= ' . $product['id'] . ' ' . $variation['name'] . "<br>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if ($aggiornapreordine === '1') {
|
} else if ($aggiornapreordine === '-1') {
|
||||||
|
|
||||||
if ($idprodotto > 0) {
|
if ($idprodotto > 0) {
|
||||||
|
|
||||||
$variations = Variation::all($product['parent_id']);
|
$variations = Variation::all($product['parent_id']);
|
||||||
|
|||||||
Reference in New Issue
Block a user