diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 7050e419..27c77cf3 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -8,6 +8,8 @@ use Codexshaper\WooCommerce\Facades\Product; use Codexshaper\WooCommerce\Facades\Variation; use Illuminate\Support\Facades\Schema; +define('QTA_IN_PREVENDITA', 10000); + function showarray($array) { echo '
' . json_encode($array, JSON_PRETTY_PRINT) . ''; @@ -138,7 +140,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug) } } - $data['stock_quantity'] = 1000; + $data['stock_quantity'] = QTA_IN_PREVENDITA; if ($debug) { echo "Data:";