This commit is contained in:
paoloar77
2024-05-19 16:58:44 +02:00
parent 8cebb0e978
commit fb0d20449c

View File

@@ -6112,12 +6112,14 @@ Route::get('/aggiornapreorder/{idarticolo}/{aggiornapreordine}', function ($idar
$data = [];
$data['stock_quantity'] = '1000';
$datenow = date('Y-m-d');
$idprodotto = $product['parent_id'];
if ($idprodotto > 0) {
$data['meta_data'] = $product['meta_data'];
updateValueByKey($data['meta_data'], $campoPreOrder, 'true');
updateValueByKey($data['meta_data'], '_is_pre_order', 'true');
updateValueByKey($data['meta_data'], '_pre_order_date', '2024-05-25');
updateValueByKey($data['meta_data'], '_pre_order_date', $datenow);
updateValueByKey($data['meta_data'], '_wpro_date_label_variable', '');
updateValueByKey($data['meta_data'], '_wpro_no_date_label_variable', '');
updateValueByKey($data['meta_data'], '_wpro_manage_price_variable', '');