Don't forget that in order to maintain PCI compliance that an amount of history must be maintained and that keeping a back up of the database would support meeting that requirement. Also, would want a backup just in case something goes wrong.
Suggest reviewing the related threads below, at least specifically this one: https://www.zen-cart.com/showthread....ounter-history
As DrByte said, there are a number of tables and data related to things, but also understand that the individuals posting were wanting to remove orders AND customers.
Also, for "sanity's" sake, before executing a delete query, I would recommend using a select query to validate that the results to be deleted are the ones expected.
So instead of:
Code:
DELETE FROM orders where orders_id = 5;
For example, would want to use something like:
Code:
SELECT date_purchased FROM orders where orders_id = 5;
Then review the results. If that order or set of orders is the one desired, then change the select (parameter) to just DELETE.
Note: instead of a specific field such as date_purchased, you could use * to get all fields.
Bookmarks