From 71a6ea7a10564e852b18e2aa170c204665a4632c Mon Sep 17 00:00:00 2001 From: paoloar77 Date: Fri, 20 Dec 2024 12:47:48 +0100 Subject: [PATCH] aa --- app/CustomFuncPao.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/CustomFuncPao.php b/app/CustomFuncPao.php index 25a64f27..0dc3185d 100644 --- a/app/CustomFuncPao.php +++ b/app/CustomFuncPao.php @@ -138,7 +138,8 @@ function setPreOrder($sku, $aggiornapreordine, $debug) showarray($product); } - $campoPreOrder = '_wpro_variable_is_preorder'; + //$campoPreOrder = '_wpro_variable_is_preorder'; + $campoPreOrder = '_ywpo_preorder'; if ($product) { $titolo = $product['name']; @@ -220,7 +221,9 @@ function setPreOrder($sku, $aggiornapreordine, $debug) if ($agg) { updateValueByKey($data['meta_data'], $campoPreOrder, 'yes'); updateValueByKey($data['meta_data'], '_is_pre_order', 'yes'); + // updateValueByKey($data['meta_data'], '_ywpo_preorder', 'yes'); updateValueByKey($data['meta_data'], '_pre_order_date', $datepubblstr); + updateValueByKey($data['meta_data'], '_ywpo_for_sale_date', $datepubblstr); updateValueByKey($data['meta_data'], '_wpro_date_label_variable', $label_prenotalo_con_data); updateValueByKey($data['meta_data'], '_wpro_no_date_label_variable', ''); updateValueByKey($data['meta_data'], '_wpro_manage_price_variable', '');