Skip to main content

Order Number

13 years 9 months ago #84917 by Arthas
Order Number was created by Arthas
Hello,

I need to change the order's number for each new order on the store. Like this:

order_id + date(Year)

Is it sufficient change the way how hikashop save it from the order's class?

thanks in advance

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

13 years 9 months ago #84958 by Jerome
Replied by Jerome on topic Order Number
Hi,

It's an existing option in HikaShop
www.hikashop.com/en/support/documentatio...hop-config.html#main

Order number format : This option enables you to set the format of order numbers. It is only available in commercial versions of HikaShop. By default, the order number uses letters and numbers interleaved together. this is represented here with the tag {automatic_code}. If you want to use the order number directly, you can use the tag {id}. In the tag id, you can specify the number of numbers with the size attribute. For example, {id size="5"} will result in 00123 for the order with the id 123. You can also use the date tag in order to insert date information. For example, {date format="m/Y"} will result in 02/11 for an order made in February 2011. You can combine them to generate pretty advanced order numbers like the format RE-{id size="5"}/{date format="m/Y"} used for German accounting which will result in RE-00123/02/11 for the order 123 made on February 2011.


Regards,

Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

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

13 years 9 months ago #85081 by Arthas
Replied by Arthas on topic Order Number
Oh, I didn't see it. Thanks a lot.

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

Time to create page: 0.071 seconds
Powered by Kunena Forum