aa
This commit is contained in:
@@ -136,6 +136,9 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
|
|||||||
$data = [];
|
$data = [];
|
||||||
|
|
||||||
$datenow = date('Y-m-d');
|
$datenow = date('Y-m-d');
|
||||||
|
$datenowlabel = date('d-m-Y');
|
||||||
|
|
||||||
|
$label_prenotalo_con_data = 'Prenotalo per riceverlo entro il ' . $datenowlabel;
|
||||||
|
|
||||||
if ($idprodotto > 0) {
|
if ($idprodotto > 0) {
|
||||||
|
|
||||||
@@ -173,7 +176,7 @@ function setPreOrder($sku, $aggiornapreordine, $debug)
|
|||||||
updateValueByKey($data['meta_data'], '_wpro_label_variable', 'Pre Ordinalo!');
|
updateValueByKey($data['meta_data'], '_wpro_label_variable', 'Pre Ordinalo!');
|
||||||
updateValueByKey($data['meta_data'], '_wpro_price_type_variable', 'manual');
|
updateValueByKey($data['meta_data'], '_wpro_price_type_variable', 'manual');
|
||||||
updateValueByKey($data['meta_data'], '_wpro_amount_price_variable', 'fixed');
|
updateValueByKey($data['meta_data'], '_wpro_amount_price_variable', 'fixed');
|
||||||
updateValueByKey($data['meta_data'], '_wpro_date_variable', $datenow);
|
updateValueByKey($data['meta_data'], '_wpro_date_variable', $label_prenotalo_con_data);
|
||||||
updateValueByKey($data['meta_data'], '_wpro_time_variable', '');
|
updateValueByKey($data['meta_data'], '_wpro_time_variable', '');
|
||||||
updateValueByKey($data['meta_data'], '_rank_math_gtin_code', '');
|
updateValueByKey($data['meta_data'], '_rank_math_gtin_code', '');
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user