From 01f90df918b8cfe770b4d60b11e5781aba7f7ceb Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Tue, 21 May 2024 01:24:02 +0200 Subject: [PATCH] aa --- app/CustomFuncPao.php | 2 +- routes/web.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 53081b7c..65f76b0a 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -93,7 +93,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug) $titolo = $product['name']; if ($debug) - echo "Prodotto trovato: " . $titolo . "StockQty = " . $product['stock_quantity'] . "
"; + echo "Prodotto trovato: " . $titolo . " StockQty = " . $product['stock_quantity'] . "
"; $preorder = false; if (isKeyPresent($product['meta_data'], $campoPreOrder)) { diff --git a/routes/web.php b/routes/web.php index e7d381ea..f3204b00 100644 --- a/routes/web.php +++ b/routes/web.php @@ -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);