This commit is contained in:
paoloar77
2024-05-21 01:24:02 +02:00
parent 3153c155f8
commit 01f90df918
2 changed files with 2 additions and 2 deletions

View File

@@ -93,7 +93,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
$titolo = $product['name'];
if ($debug)
echo "Prodotto trovato: " . $titolo . "StockQty = " . $product['stock_quantity'] . "<br>";
echo "Prodotto trovato: " . $titolo . " StockQty = " . $product['stock_quantity'] . "<br>";
$preorder = false;
if (isKeyPresent($product['meta_data'], $campoPreOrder)) {

View File

@@ -6157,7 +6157,7 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
return libriInPrevendita();
} elseif ($action == 'setPreOrder') {
setPreOrder($id, true, true);
setPreOrder($id, "1", true);
} elseif ($action == 'checkPrevendita') {
// Logica per verificare se l'articolo è in preordine
$inprevendita = isArticleInPrevendita($id);