aa
This commit is contained in:
@@ -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)) {
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user