Zen Cart Logo
Forums / Basic Configuration / Max Items in Cart

Max Items in Cart

Views: 1,528

Results 1 to 8 of 8
19 Oct 2011, 8:50 PM
#1
mrspiffy avatar

mrspiffy

New Zenner

Join Date:
Mar 2009
Posts:
29
Plugin Contributions:
1

Max Items in Cart

Can anyone point me to where I can set the max number of items that can be added to a cart?

thanks!

20 Oct 2011, 4:34 AM
#2
Kim avatar

Kim

Obaa-san

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

Re: Max Items in Cart

Do you want the maximum number of individual products or the total of all items?

20 Oct 2011, 5:04 AM
#3
mrspiffy avatar

mrspiffy

New Zenner

Join Date:
Mar 2009
Posts:
29
Plugin Contributions:
1

Re: Max Items in Cart

max total of all items would be fine.

20 Oct 2011, 7:29 AM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Max Items in Cart

That is not something you can set in stock Zen Cart; you can set maximums for any one product in Catalog > Categories/Products > edit product.

You would have to do some custom coding for what you want.

15 Nov 2015, 4:03 AM
#6
s3john avatar

s3john

New Zenner

Join Date:
Nov 2015
Location:
SF Bay Area
Posts:
2
Plugin Contributions:
0

Re: Max Items in Cart

Thank you, Linda McGrath. I spent all day in the Saturday salt mines today and was getting frustrated. This ^ was exactly what I needed. I had to register to pass on how useful your advice from four years ago was for the unique situation my boss put me in today.

15 Nov 2015, 4:57 AM
#7
rodg avatar

rodg

Deceased

Join Date:
Jan 2007
Location:
Australia
Posts:
6,263
Plugin Contributions:
4

Re: Max Items in Cart

MrSpiffy:

Can anyone point me to where I can set the max number of items that can be added to a cart?

thanks!

None of my business really, and I don't have an answer, but I can't help but wonder why you would need this?

I'm guessing that it is to stop abuse by some robots that don't know when to stop? If so, perhaps it may be easier to simply disallow those particular bots?

Cheers
RodG

23 Nov 2015, 8:00 PM
#8
s3john avatar

s3john

New Zenner

Join Date:
Nov 2015
Location:
SF Bay Area
Posts:
2
Plugin Contributions:
0

Re: Max Items in Cart

RodG:

None of my business really, and I don't have an answer, but I can't help but wonder why you would need this?

I'm guessing that it is to stop abuse by some robots that don't know when to stop? If so, perhaps it may be easier to simply disallow those particular bots?

Cheers
RodG

In my own case, it was a one-off thing to temporarily require purchases from a specific category to total exactly 6 items. They could be the same item or a mix of items, but the total had to be 6 for that category. The suggestion to tweak Minimum Items was just what I needed. Wish I had thought of it myself. To make matters worse, the total for that category had to be $96, regardless of the individual prices, which were all different, and to show the savings in the cart. Everything worked out, though, and this thread got me pointed in the right direction for the first part of the problem.