Forums / General Questions / Deleting All Data in Cart?

Deleting All Data in Cart?

Views: 791

Results 1 to 7 of 7
15 Oct 2014, 5:32 PM
#1
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Deleting All Data in Cart?

Hi, I've been doing some testing by uploading some products from my datafeed to my store. Am wondering, is there any easy way to delete all data in Zen Cart without doing it one by one.

THanks
Brenda

15 Oct 2014, 5:54 PM
#2
drbyte avatar

drbyte

Sensei

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

Re: Deleting All Data in Cart?

You can completely wipe out EVERYTHING ... (not just products) by uploading the zc_install files and running zc_install just like it was a brand new store. After providing database credentials it will wipe out the entire store database (all users, customers, products, orders, sales, module settings, everything) and you'll be reset to a completely brand new fresh start.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Oct 2014, 6:24 PM
#3
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Deleting All Data in Cart?

Hi Doc.... But besides a clear and total wipe out, how can you quickly get rid of test products uploaded. Thanks again!

Brenda

15 Oct 2014, 6:46 PM
#4
stevesh avatar

stevesh

Black Belt

Join Date:
Feb 2005
Location:
Lansing, Michigan USA
Posts:
19,793
Plugin Contributions:
2

Re: Deleting All Data in Cart?

I don't know about 'quickly', but I just delete all categories from admin.

15 Oct 2014, 7:09 PM
#5
drbyte avatar

drbyte

Sensei

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

Re: Deleting All Data in Cart?

stevesh:

I don't know about 'quickly', but I just delete all categories from admin.
Yes, that works too ... however it leaves the "next product ID" set to whatever the highest already-used number was.

It really depends on what your specific needs are.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Oct 2014, 8:28 PM
#6
msbfrnj avatar

msbfrnj

New Zenner

Join Date:
Apr 2010
Posts:
68
Plugin Contributions:
0

Re: Deleting All Data in Cart?

Ok thanks....

Brenda

17 Oct 2014, 5:32 PM
#7
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Deleting All Data in Cart?

msbfrnj:

Ok thanks....

Brenda

Also if using a tool such as EasyPopulate 4 by uploading product with a status of 9, the related product will be deleted. (Still have the same next product number issue described above.)

ZC Installation/Maintenance Support <- Site
Contribution for contributions welcome...