Handle order number and product ui fields

This commit is contained in:
Almira Krdzic
2018-10-24 12:13:07 +02:00
parent e1589ee561
commit e41b643fc5
7 changed files with 77 additions and 17 deletions

View File

@@ -28,6 +28,20 @@ class Wiaas_Order {
add_filter('woocommerce_rest_orders_prepare_object_query', array( __CLASS__, 'wiaas_prepare_rest_orders_query'), 10, 2);
add_filter('woocommerce_new_order_note_data', array( __CLASS__, 'update_new_order_comment_date'), 10, 3);
add_filter('woocommerce_order_number', array( __CLASS__, 'format_order_number'));
}
/**
* Prefix order number
*
* @param int $number
*
* @return string
*/
public static function format_order_number($number) {
return "1000000$number";
}
/**