This commit is contained in:
paoloar77
2024-06-18 09:16:53 +02:00
parent b7ff7aed82
commit 758afe83a0

View File

@@ -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']);