Reset product ID to 0

  • Posts: 152
  • Thank you received: 0
13 years 10 months ago #24664

Hi,

Is it possible to reset the product ID to start at zero again? I assume this would need to be reset in the database?

Thanks for any tips!

Phil


Create your own style of luxury bespoke furniture online

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

  • Posts: 84079
  • Thank you received: 13636
  • MODERATOR
13 years 10 months ago #24671

Hi,

Indeed. First, you should delete all your products in HikaShop. Then, in your phpmyadmin, you can edit the table hikashop_product table and "truncate" it. That will reset the auto increment value to 0.

Last edit: 13 years 4 months ago by nicolas.

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

  • Posts: 152
  • Thank you received: 0
13 years 10 months ago #24674

Thanks Nicolas


Create your own style of luxury bespoke furniture online

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

  • Posts: 152
  • Thank you received: 0
13 years 4 months ago #40819

Hi Nicolas,

Just trying this and i can't see hikashop_table anywhere in phpmyadmin? Has this changed?

Thanks,

Phil


Create your own style of luxury bespoke furniture online

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

  • Posts: 84079
  • Thank you received: 13636
  • MODERATOR
13 years 4 months ago #41027

It's the table hikashop_product. Sorry for the typo.

Last edit: 13 years 4 months ago by nicolas.

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

  • Posts: 152
  • Thank you received: 0
13 years 4 months ago #41213

Hi Nicolas,

Just tried this and new products still continue to increment their product ID from the original number.

Any ideas?

Phil


Create your own style of luxury bespoke furniture online

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

  • Posts: 152
  • Thank you received: 0
13 years 4 months ago #41215

Sorry ignore my last comment, got it working now!


Create your own style of luxury bespoke furniture online

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

  • Posts: 14
  • Thank you received: 0
12 years 9 months ago #68845

not to start a new topic i'll just ask my question here

If i need to delete all the products from hikashop through phpmyadmin is it enough just to clean hikashop_product table

or do i need to clean any other tables?

Thank you

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

  • Posts: 84079
  • Thank you received: 13636
  • MODERATOR
12 years 9 months ago #68956

You should also clean the product_category, product_related, variant, and price tables. The file table would have to be deleted for the images but it also contains the images of the categories so you might not want to clear it.

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

Time to create page: 0.088 seconds
Powered by Kunena Forum