{automatic_code} with a min. of 6 positions

  • Posts: 103
  • Thank you received: 5
5 years 6 months ago #306378

-- HikaShop version -- : 4.0.3

how did you manage the orders like on the image below?



when i use the {automatic_code} i get only a order id with 3 positions, like this: T17
But i want to generate a min. of 6 positions.
how did you manage this on your hika installation?

Attachments:

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 6 months ago #306383

Hi,

We use the automatic_code tag, but with a bigger order_id.

The following user(s) said Thank You: n00bster

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

  • Posts: 103
  • Thank you received: 5
5 years 6 months ago #306389

how can i enlarge the order_id?

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

  • Posts: 82863
  • Thank you received: 13372
  • MODERATOR
5 years 6 months ago #306393

Hi,

For the order number, you need a bigger order_id. Thi can be increased in the auto increment setting of your phpmyadmin in the hikashop_order table:
www.hikashop.com/forum/install-update/88...r-order-numbers.html
For the invoice number, the automatic_code bases itself on the order_invoice_id and it depends on the last order's order_invoice_id. So you would have to edit the value of that column in hikashop_order for the last confirmed order and increase the value that. That will be taken into account for the next confirmed order.

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

Time to create page: 0.060 seconds
Powered by Kunena Forum