aa
This commit is contained in:
@@ -93,7 +93,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
|
|||||||
$titolo = $product['name'];
|
$titolo = $product['name'];
|
||||||
|
|
||||||
if ($debug)
|
if ($debug)
|
||||||
echo "Prodotto trovato: " . $titolo . "StockQty = " . $product['stock_quantity'] . "<br>";
|
echo "Prodotto trovato: " . $titolo . " StockQty = " . $product['stock_quantity'] . "<br>";
|
||||||
|
|
||||||
$preorder = false;
|
$preorder = false;
|
||||||
if (isKeyPresent($product['meta_data'], $campoPreOrder)) {
|
if (isKeyPresent($product['meta_data'], $campoPreOrder)) {
|
||||||
|
|||||||
@@ -6157,7 +6157,7 @@ Route::get('/handle-article-action-pao/{id}/{action}', function ($id, $action) {
|
|||||||
return libriInPrevendita();
|
return libriInPrevendita();
|
||||||
|
|
||||||
} elseif ($action == 'setPreOrder') {
|
} elseif ($action == 'setPreOrder') {
|
||||||
setPreOrder($id, true, true);
|
setPreOrder($id, "1", true);
|
||||||
} elseif ($action == 'checkPrevendita') {
|
} elseif ($action == 'checkPrevendita') {
|
||||||
// Logica per verificare se l'articolo è in preordine
|
// Logica per verificare se l'articolo è in preordine
|
||||||
$inprevendita = isArticleInPrevendita($id);
|
$inprevendita = isArticleInPrevendita($id);
|
||||||
|
|||||||
Reference in New Issue
Block a user