Page 1 of 1

Best method for removing orders from the system

Posted: 24 Oct 2021, 17:30
by dmlwebal
Hi

I have a two clients that sell exactly the same products. So as part of the project I can copy one full Joomla Phoca Cart installation across to new hosting, but, I need to remove the Phoca Cart Orders from the destination domain.

Is it safe to run this as a query on the database? or will this create problems?

What is the best method?

David

Re: Best method for removing orders from the system

Posted: 24 Oct 2021, 23:22
by Jan
Hi, you need to run it in database and truncate the table because it includes autoincrement column - id. And if you want to start to count orders from 1, the autoincrement needs to be reset.

And, yes, this is very problematic, because another tables are linked, it is at least the following:

Image

which even needs to be emptied and reset.

Jan

Re: Best method for removing orders from the system

Posted: 21 Jan 2022, 10:26
by Shuffle
Thanks. This info is very helpful for testing. :twisted:
Perhaps one should not truncate phocacart_order_statuses, if one has definded own content before. :wink:

Re: Best method for removing orders from the system

Posted: 23 Jan 2022, 21:19
by Jan
Hi, yes, if you have own order statuses done, it is OK to not remove them.

Jan