Changing the format of the number of online orders
#woocommerce #php
The task is to change the format of the number of online orders from the standard one according to the following example:
YWWNNN
Y is the last digit of the year
WW is the week number according to ISO 8601
NNN is the ordinal number of the order. Numbers 1…500 are reserved for orders created in BAS, 501…999 are for orders created in WooCommerce.
Example: Order 338502 from 09/18/2023.
By agreement, it was decided to leave the original order number and make an additional field with a new format. The new order format is displayed throughout the store (customer, administrative and in messages)
The task is to change the format of the number of online orders from the standard one according to the following example:
YWWNNN
Y is the last digit of the year
WW is the week number according to ISO 8601
NNN is the ordinal number of the order. Numbers 1…500 are reserved for orders created in BAS, 501…999 are for orders created in WooCommerce.
Example: Order 338502 from 09/18/2023.
By agreement, it was decided to leave the original order number and make an additional field with a new format. The new order format is displayed throughout the store (customer, administrative and in messages)