Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Setting Up Your Zen Cart Products / Setting Up Categories, Products, Attributes / Limit number of products a customer can buy from a category

Limit number of products a customer can buy from a category

Started by monsunemoon on 3 Oct 2010, 7:28 PM · Views: 1,165

Results 1 to 3 of 3
3 Oct 2010, 7:28 PM
#1
monsunemoon avatar

monsunemoon

New Zenner

Join Date:
Jan 2010
Posts:
27
Plugin Contributions:
0

Post #1 by monsunemoon

Hi,

I'd like to be able to set a limit on the number of items a customer can buy from a specific category. On my site, we sell cosmetic samples. Each sample is a product in the "Samples" category and a different coloured cosmetic. I have limitted each product to "Product Qty Maximum 1", so customers can only buy 1 of each sample. However they can still buy 1 of every type (/colour) of product in the category.

I would like to be able to restrict the number of products per category. so that the customer can only buy 3 samples for exampel.

Is there a way of doing this / a module or addon to do it?

Thanks :clap:

6 Oct 2010, 9:19 AM
#2
absolute avatar

absolute

Totally Zenned

Join Date:
May 2005
Location:
Bath, Somerset
Posts:
1,054
Plugin Contributions:
2

Post #2 by absolute

There isn't a standard module to do this that I'm away of, but it would be fairly easy to create this. You would need to add a new field to the category table, and admin, and then just run a check on the products at the checkout and shopping cart pages to display the error.

We have done a similar thing for minimum order quantities from each category.

Absolute

Back, after a 4 year absence! Did you miss me?
Absolute Web Solutions Ltd
Interested in our work? Take a look at one of our sites - The Tech Store

14 Feb 2011, 11:48 PM
#3
polyestercowboy avatar

polyestercowboy

New Zenner

Join Date:
Jun 2010
Posts:
4
Plugin Contributions:
0

Post #3 by polyestercowboy

Has anyone figured this out? I'd like very much to incorporate this feature into my site as well.