diff --git a/routes/web.php b/routes/web.php
index ceacb243..49866810 100644
--- a/routes/web.php
+++ b/routes/web.php
@@ -6104,10 +6104,11 @@ Route::get('/aggiornapreorder/{idarticolo}/{postid}', function ($idarticolo, $po
if (isKeyPresent($product['meta_data'], '_is_pre_order')) {
echo "TROVATO ! ";
+ $preorder = getValueByKey($product['meta_data'], '_is_pre_order');
}
- if ($product['_is_pre_order'] == 'true') {
- echo "PREORDER: " . $product['_is_pre_order'] . "
";
+ if ($preorder) {
+ echo "PREORDER: " . $preorder;
}
echo "
";