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);