Skip to main content

How to pad ordernumber ID

More
14 years 7 months ago #38392 by obsolum
Hi,

Currently I have my ordernumber format set to YYx where YY is the year (12) and xx is the order ID. However, I'd like to pad the id to 4 chars long, so instead of '121' I'll get '120001'. I have tried altering the order_id field with the zerofill attribute, and now the ID's are padded in the MySQL database but they still show up unpadded on the frontend.

Can I specify padding in the backend configuration?

Thanks!

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #38505 by nicolas
Hi,

Yes, you can pad the id directly in the order number format option like that:
{id size="4"}
The following user(s) said Thank You: obsolum

Please Log in or Create an account to join the conversation.

More
14 years 7 months ago #38572 by obsolum
Again the solution is so simple :-)

Thanks a lot!

Please Log in or Create an account to join the conversation.

Time to create page: 0.200 seconds
Powered by Kunena Forum