Reset invoice number to restart from 1

  • Posts: 272
  • Thank you received: 13
11 years 4 months ago #108768

I need to reset the invoice number format so that after my tests it can restart from number 1

How to?

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108785

Go in the database via phpmyadmin and empty the tables hikashop_order, hikashop_history and hikashop_order_product

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

  • Posts: 272
  • Thank you received: 13
11 years 4 months ago #108817

Thanks, will you implement a better way to reset it instead of editing DB? It's common that before a site go to live you do tests and so would be very usefull have a simple way to reset it.

Also, the option you implemented to restart this number choosing between 2 options (monthly and yearly) will just reset this number so I do not need to reset manually those DB tables right?

Thanks in advice.

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

  • Posts: 82758
  • Thank you received: 13346
  • MODERATOR
11 years 4 months ago #108899

We won't add a button for that. It's even more common that someone click on a button without reading the warning. I don't want to have to explain to someone that he just lost all his orders data because he went a bit too fast.

Emptying the tables in the database isn't so much complex but at least you can't have a user miss click there from his website backend.

The option for invoice id reset will indeed reset the invoice id/number every month/year automatically (without removing the data in the tables of course) but it won't reset the order id/number.

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

Time to create page: 0.056 seconds
Powered by Kunena Forum