order numbering

  • Posts: 52
  • Thank you received: 0
13 years 8 months ago #8804

I have used virtuemart for years but it is not compatible with 1.6 so I am trying hikashop and I really like it so far!

I made a test order on my new hikashop and see that it is called B1.

I do not like this and would prefer them to be called 001, 002, 003 etc. I thought I saw somewhere to adjust that but cannot find it now.

is there a setting for that or can I be advised on what file must be adjusted, or is it too embedded to change?

thank you!

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

  • Posts: 82817
  • Thank you received: 13359
  • MODERATOR
13 years 8 months ago #8806

You can set the format of the order number in the config in the option "order number format":

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.


www.hikashop.com/support/documentation/5...hop-config.html#main

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

  • Posts: 52
  • Thank you received: 0
13 years 8 months ago #8811

ok well I am not going to purchase just to change the numbers but might I suggest 001,002,003 is more universal/standard then b1, c1, etc which is kind of weird looking and I am not sure what happens after z1.

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

  • Posts: 82817
  • Thank you received: 13359
  • MODERATOR
13 years 8 months ago #8812

That's the point of the order format: that users don't know how many orders you have in your store.

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

  • Posts: 102
  • Thank you received: 0
11 years 10 months ago #83895

1. Does your documentation list all the available options for formatting the Order Number? For example, I see where it indicates you can use {id size="5"}/{date format="m/Y"}, but are their other options or formatting codes listed somewhere?

For example, I see a list of how to use the date option here: www.php.net/manual/en/function.date.php What are the other options and are there similar list for these options.

2. Also, I'm assuming when each customer signs in, they are assigned an id number and that is what is inserted for {id size="5"}. Is that correct?


Brad

Sunday School Teacher Training
www.m2820.com
Last edit: 11 years 10 months ago by simo90.

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

  • Posts: 26152
  • Thank you received: 4027
  • MODERATOR
11 years 10 months ago #84541

Hi,

There is just "id" and "date" keywords.
"id" just have the parameter "size" - it is the order id (an incremental number). You can specify the size in order to add "0" below the number.
"date" just have the parameter "format" - it is the date of the order.
The format uses the PHP date function so you can use it.

Regards,


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

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

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

Time to create page: 0.072 seconds
Powered by Kunena Forum