AA
This commit is contained in:
@@ -8,6 +8,8 @@ use Codexshaper\WooCommerce\Facades\Product;
|
|||||||
use Codexshaper\WooCommerce\Facades\Variation;
|
use Codexshaper\WooCommerce\Facades\Variation;
|
||||||
use Illuminate\Support\Facades\Schema;
|
use Illuminate\Support\Facades\Schema;
|
||||||
|
|
||||||
|
define('QTA_IN_PREVENDITA', 10000);
|
||||||
|
|
||||||
function showarray($array)
|
function showarray($array)
|
||||||
{
|
{
|
||||||
echo '<pre>' . json_encode($array, JSON_PRETTY_PRINT) . '</pre>';
|
echo '<pre>' . json_encode($array, JSON_PRETTY_PRINT) . '</pre>';
|
||||||
@@ -138,7 +140,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$data['stock_quantity'] = 1000;
|
$data['stock_quantity'] = QTA_IN_PREVENDITA;
|
||||||
|
|
||||||
if ($debug) {
|
if ($debug) {
|
||||||
echo "Data:";
|
echo "Data:";
|
||||||
|
|||||||
Reference in New Issue
Block a user