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', '');