Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Is there a way to purge all pending cart sales?

Is there a way to purge all pending cart sales?

Locked

Started by ripper on 23 Nov 2009, 5:20 PM · Views: 2,413

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
23 Nov 2009, 5:20 PM
#1
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #1 by ripper

I have a client who is running a special Black Friday sale. He says people are putting items in their cart already, and waiting until Friday to purchase. We wants to make sure they don't do that. What can he do so everyone has an equal playing field?

Ripper
Oz Website Services
https://www.oz-web.net

23 Nov 2009, 7:08 PM
#3
drbyte avatar

drbyte

Sensei

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

Post #3 by drbyte

There are 2 tables which store customer shopping-basket details. You'll need to truncate both of those tables.
NOTE: Doing this will purge EVERYONE's shopping basket, including those who legitimately added stuff last week but haven't completed their decisions yet.

One way to do it quickly is to paste the following into the Admin SQL Patch tool and click send:```
TRUNCATE TABLE customers_basket;
TRUNCATE TABLE customers_basket_attributes;

.
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.

23 Nov 2009, 7:11 PM
#4
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #4 by ripper

Thanks for the help. Is there a way he can set up that sale page to avoid this? I am more of the behind the scenes guy, I have no idea how to actually use the cart on the retail side....

Ripper
Oz Website Services
https://www.oz-web.net

23 Nov 2009, 8:07 PM
#5
drbyte avatar

drbyte

Sensei

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

Post #5 by drbyte

You can't avoid people filling their carts.

But, you could maybe turn off the Multiple Add To Cart buttons at top and bottom, thus making the qty fields turn into buy-now buttons. And that might deter them slightly.
But, changing that will affect all product listings.

Admin->Configuration->Product Listing->Display Multiple Products Qty Box Status and Set Button Location --- set it to 0
And then after the sale is over, you can leave it at 0, or put it back to whatever you had it at (probably 3 right now).

.
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.

23 Nov 2009, 8:29 PM
#6
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #6 by ripper

OK, thanks. I'll tell the cart owner what you said......

Ripper
Oz Website Services
https://www.oz-web.net

24 Nov 2009, 2:37 AM
#7
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #7 by ripper

The SQL patch didn't work. I put stuff in my cart, then added the 2 lines of code into the patch editor and the items were still in my cart after going back to the shopping cart page (after closing the window, then starting over)

Ripper
Oz Website Services
https://www.oz-web.net

24 Nov 2009, 3:07 AM
#8
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #8 by ripper

OK, I exported the two customer basket tables into an Excel document and it appears the tables are empty, yet I am still seeing these items in my cart. What am I doing wrong?

Ripper
Oz Website Services
https://www.oz-web.net

24 Nov 2009, 3:20 AM
#9
drbyte avatar

drbyte

Sensei

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

Post #9 by drbyte

Did you log out?
Does the store have any addons which change the core methods used by Zen Cart to handle cart contents?

.
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.

24 Nov 2009, 3:28 AM
#10
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #10 by ripper

I wasn't logged in at the time.

Add-ons include Better Together Discount Module for Zen Cart 1.3 Version 2.0 and Quantity Discounts Module for Zen Cart 1.3.5 and above Version 1.10. The only other chages are cosmetic.

Ripper
Oz Website Services
https://www.oz-web.net

24 Nov 2009, 3:30 AM
#11
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #11 by ripper

Add-ons include Better Together Discount Module for Zen Cart 1.3 Version 2.0 and Quantity Discounts Module for Zen Cart 1.3.5 and above Version 1.10. The only other chages are cosmetic.

Ripper
Oz Website Services
https://www.oz-web.net

24 Nov 2009, 3:34 AM
#12
drbyte avatar

drbyte

Sensei

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

Post #12 by drbyte

If you're not logged in, then all your cart-contents details are lost after 24 minutes of inactivity ... which means they won't survive until the sale about which you're concerned.

.
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.

24 Nov 2009, 3:38 AM
#13
ripper avatar

ripper

Zen Follower

Join Date:
Jul 2005
Posts:
295
Plugin Contributions:
0

Post #13 by ripper

OK, but what about the people who are logged in? Is that the only time the cart contents are saved to the database?

Ripper
Oz Website Services
https://www.oz-web.net

24 Nov 2009, 3:45 AM
#14
drbyte avatar

drbyte

Sensei

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

Post #14 by drbyte

Yes .

.
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.

24 Nov 2009, 6:04 AM
#15
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,761
Plugin Contributions:
0

Post #15 by Kim

... and even if they are stored in the cart - they are not removed from the inventory until the cart is checked out.

Please do not PM for support issues: a private solution doesn't benefit the community.

Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.