Long order number

  • Posts: 12
  • Thank you received: 0
12 years 11 months ago #33743

how can i make the order number longer insted of B1 somthing like B156456 ?

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 11 months ago #33744

You need to go in your phpmyadmin and change the auto increment value of the jos_hikashop_order table by running a query like that:
ALTER TABLE jos_hikashop_order AUTO_INCREMENT = 156456;

Then, new orders will have their ID using 156456 and not 1

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

  • Posts: 12
  • Thank you received: 0
12 years 11 months ago #33745

that worked, thanks a lot.
but for me was
ALTER TABLE fewcn_hikashop_order AUTO_INCREMENT = 156456;

Last edit: 12 years 11 months ago by afrttoh.

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

  • Posts: 50
  • Thank you received: 2
12 years 10 months ago #36403

Hi,

I'm not sure if this is the right topic to ask but I think my question is related.

I upgraded to the Business version today (as a different user) and I'd like to use a custom order number format. However, I'm not sure if this can be done. What I'd like is for example:

MYD-120135

where the 'MYD-' is static (the initials of the website name), '12' is the year, '01' the month and then '35' is a number that increments with each order. Is that possible? I know my way around MySQL databases so if I can solve it with a query or something then that'll work. I just need to know what I need to change exactly.

Thanks!

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

  • Posts: 82910
  • Thank you received: 13379
  • MODERATOR
12 years 10 months ago #36443

Hi,

You can do that by setting this format in the "Order number format" option of the configuration of HikaShop:

MYD-{date format="ym"}{id}

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

  • Posts: 50
  • Thank you received: 2
12 years 10 months ago #36478

Terrific! Every time I ask a question here the answer is so simple I feel ridiculous for asking.

Thanks again for a wonderful product.

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

Time to create page: 0.078 seconds
Powered by Kunena Forum