V
V
Vyacheslav2019-02-08 15:35:27
WordPress
Vyacheslav, 2019-02-08 15:35:27

How to change numbering of orders in woocommerce like: year, month, day, hour, minute, second?

in woocommerce, the default numbering of orders is 1,2,3.... you need something like 190208-151710 (year, month, day, - hour, minute, second (+ another 10 fraction of a second would be nice))
You need to change it is the numbering, not the prefix. and orders should change in the database (as far as I understand).
on this forum https://www.tychesoftwares.com/how-to-add-prefix-o... I
read that you can use the woocommerce_new_order_data hook but the topic is not disclosed.
Maybe someone knows examples of such implementation?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question