{automatic_code} with a min. of 6 positions

  • Posts: 89
  • Thank you received: 3
  • Hikashop Business
3 months 2 weeks 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: 66630
  • Thank you received: 9810
  • MODERATOR
3 months 2 weeks 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: 89
  • Thank you received: 3
  • Hikashop Business
3 months 2 weeks ago #306389

how can i enlarge the order_id?

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

  • Posts: 66630
  • Thank you received: 9810
  • MODERATOR
3 months 2 weeks 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.062 seconds
Powered by Kunena Forum