If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Categories, Products, Attributes / How to restrict to just one product in the cart per customer?

How to restrict to just one product in the cart per customer?

Locked

Started by gifro10 on 27 Apr 2008, 8:23 PM · Views: 1,398

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
27 Apr 2008, 8:23 PM
#1
gifro10 avatar

gifro10

New Zenner

Join Date:
Mar 2008
Location:
Kelowna, BC
Posts:
34
Plugin Contributions:
0

How to restrict to just one product in the cart per customer?

I know this is against the main purpose of a "cart," but I would like to restrict the ability of a user to add more than 1 product to their cart.

With my store, although they choose from a few products, each customer will only ever buy 1 product at a time, so I want to make sure they aren't able to add more than one to their cart to avoid problems.

I've figured out how to set a maximum quantity, which restricts users from adding more than one OF THE SAME product, but they can still add multiple different products.

A long story short... how to only ever allow ONLY ONE product in the cart? Right now I have 4 total products all in the same category if that helps.

Thanks

28 Apr 2008, 12:28 AM
#2
ajeh avatar

ajeh

Oba-san

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

Re: How to restrict to just one product in the cart per customer?

There is a Minimum Order add-on that could probably be adapted to manage Maximum Order ...

Peek in the Downloads and see if this is something you might be able to tackle on your own ...

Got your coder hat on tight? :smartalec:

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!

28 Apr 2008, 6:49 AM
#3
gifro10 avatar

gifro10

New Zenner

Join Date:
Mar 2008
Location:
Kelowna, BC
Posts:
34
Plugin Contributions:
0

Re: How to restrict to just one product in the cart per customer?

Sounds rugged but I'll give it a try... I'm not much of a coder but more of a "delete-that-section-of-code-when-someone-says-that-will work" type of guy

I'll take a peek :unsure: