Forums / General Questions / Limit number of items allowed in cart

Limit number of items allowed in cart

Locked

Views: 1,344

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
13 Apr 2009, 7:40 PM
#1
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Limit number of items allowed in cart

I'd like to limit the number of items a customer can have in their cart at once. I actually want to make it single item checkout only, but I figure there might be a mod already written that would do this, and I'd just have to set the limit to "1".

I have not found a mod like that, so I am asking here.

Does anyone know of a mod that prevents checkout with multiple items in the cart, or prevents adding items to the cart if there are more than a certain amount of items already in the cart?

13 Apr 2009, 9:18 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Limit number of items allowed in cart

Out of curiosity ... why would you want to limit it to 1 and what do you want to have happen if the customer tries to add 2 ... :unsure:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

14 Apr 2009, 6:35 PM
#3
tecbrat avatar

tecbrat

Zen Follower

Join Date:
Feb 2005
Posts:
239
Plugin Contributions:
0

Re: Limit number of items allowed in cart

I am making a site that sells business cards, postcards, door hangers...

I didn't want to allow uploads prior to checkout, so I wrote my own script that allows uploads on checkout_success.

Limiting the cart to a single item simplifies the processing of the uploaded images. (a single item would be a set of 5000 cards or whatever)

The answer you gave in another thread really helped.

If the customer tries to add another, they are to be told that only one item is allowed per-checkout.

13 May 2009, 4:43 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Limit number of items allowed in cart

Thanks for the update and for posting the thread that helped you out ... :smile:

Linda McGrath
If you have to think ... you haven't been zenned ...

**Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!**

Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!