This commit is contained in:
Bilal Catic
2018-11-03 05:29:37 +01:00
parent 93e17817dc
commit 01b35dbac5
6 changed files with 17 additions and 17 deletions

View File

@@ -151,17 +151,17 @@ class Wiaas_Order {
return true;
}
public static function get_global_estimated_date($order_id){
public static function get_order_estimated_date($order_id){
$order = wc_get_order($order_id);
if (!$order){
return NULL;
}
return $order->get_meta('_wiaas_global_estimated_delivery_date') ?: NULL;
return $order->get_meta('_wiaas_order_estimated_delivery_date') ?: NULL;
}
public static function save_global_estimated_date($order_id, $date){
return update_post_meta($order_id, '_wiaas_global_estimated_delivery_date', $date);
public static function save_order_estimated_date($order_id, $date){
return update_post_meta($order_id, '_wiaas_order_estimated_delivery_date', $date);
}
public static function get_final_estimated_date($order_id){