Zen Cart Logo
Forums / General Questions / New Cart Old DB - purge sales data?

New Cart Old DB - purge sales data?

Locked

Views: 1,043

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
3 Mar 2010, 5:53 AM
#1
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

New Cart Old DB - purge sales data?

Hi I have a new cart which is a duplicate of an older one still on 138A.

The files have been duplicated and all set new domain (I hope) as I am not aware of a checklist for this.

Anyway I would like to know how to purge the db so I have no sales and no customers no gift vouchers etc.

Any help would be great.

Thanks

RR

3 Mar 2010, 9:34 AM
#2
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: New Cart Old DB - purge sales data?

Best done in phpMyAdmin, where you can "truncate" (empty) tables that contain redundant data.

If you know how to write SQL queries, then you can do this via the webshop admin >>> tools >>> insert sql patches ...

... but it's probably safer to use phpMyAdmin as you can see the entire database at the same time...

3 Mar 2010, 10:05 AM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: New Cart Old DB - purge sales data?

It's even safer to use your admin to delete each record, because it will delete all related data. If you do it with phpMyAdmin and don't carefully study to make sure you're deleting all related data, then you'll end up with horribly corrupt data and result in screwed up orders for new customers.

The ultimate best method is to do a clean install with a new clean database, since that's what you're doing with your overall store anyway. Setting up modules and taxes doesn't take all that long, and lets you cater them to your new store's unique needs as well.

3 Mar 2010, 10:08 AM
#4
fairestcape avatar

fairestcape

Totally Zenned

Join Date:
Mar 2008
Location:
Cape Town & London (depends on the season)
Posts:
2,957
Plugin Contributions:
0

Re: New Cart Old DB - purge sales data?

Take Dr Byte's advice... My post presumes you have a good knowledge of the RELATIONSHIPS between the database tables...

3 Mar 2010, 11:37 AM
#5
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: New Cart Old DB - purge sales data?

Hi Guys, thanks for your response, Yes Dr Byte ultimately that would have been my preference though I had posted a question of how to go about making a duplicate as I had so many add on's etc with further questions new vs old I think it was titled and was steered toward duplicating, though I was concerned about old records.
Anyway it is mostly done now (I think unless I am missing anything) and all the relevants changed with the exception of wanting to start Fresh with new clients and sales, so I guess if I could zero these I'd be away.

I see you mentioned doing it from the admin, I did products viewed from here Ok.

So I am left with products ordered and customer.

Reset ALL Products Ordered will this one delete all orders? and if so which one does customers or shall I reset everything in this Store Manager?

Thanks
Renz

3 Mar 2010, 11:56 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: New Cart Old DB - purge sales data?

Probably fine.

11 Mar 2010, 12:42 PM
#8
renz avatar

renz

Zen Follower

Join Date:
Jun 2006
Posts:
439
Plugin Contributions:
0

Re: New Cart Old DB - purge sales data?

Dear Dr. Byte thanks for that it worked like a charm, I have one more question related to this matter of deleting any redundant data:
Can I safely delete my zcintallLog's from httpdocs\cache and any Paypal_Curl records from httpdocs\modules\payment\paypal\logs. (which refer to an old installation).

Many Thanks

Best Regards

RR

13 Mar 2010, 11:01 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
177

Re: New Cart Old DB - purge sales data?

Yes .