Jump to content

How to customize order number format?


Recommended Posts

Hello,

I would like to change the order number format in PS 1.4 to the following. If anyone has idea how to achieve it and what code needs to be changed, I would really appreciate the help.

"YYYY/XX/MM/XXX/DD" -> I want to achieve this format


Explanation:

YYYY: year
MM: month
XX XXX: number of order
DD: day

Example: "2011100725007"

Anyone can help, how to achieve this format?

Many thanks.

Link to comment
Share on other sites

here is some thoughts, if you know coding.

you can create a new data table for save new order number format.
then when a new order it created, generate new order number with your new order format.
save the old order/new mapping in the new table.

modify the all related places to load new order number
for 1.4x, it is better to override to override existing class instead of modify the class directly.

Link to comment
Share on other sites

thanks for your thoughts, but unfortunately I don't know how to code all this and I don't know which files need to be changed...

I think if someone could write down the exact steps on how to change order number format, that would be a great help for other people too, since there is no documentation available on how to do this...

Link to comment
Share on other sites

×
×
  • Create New...