Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Can I make Max quantity not show?

Can I make Max quantity not show?

Views: 787

Results 1 to 2 of 2
21 Sep 2011, 12:33 AM
#1
xandros2000 avatar

xandros2000

New Zenner

Join Date:
Jun 2009
Posts:
41
Plugin Contributions:
0

Can I make Max quantity not show?

I want to set products max quantity to 1. I sell primarily movies, vid games and things like that, that customers don't want to order multiple copies of, but sometimes click the add to cart multiple times (I'm guessing as they end up with 2 of the same). I know how to set it for each individual product (though if there is a way to make it automatic for all products...) but the thing is, I don't want the listing to show "Max:1".

21 Sep 2011, 7:40 AM
#2
fiberdawn avatar

fiberdawn

New Zenner

Join Date:
Nov 2007
Location:
Oregon
Posts:
15
Plugin Contributions:
0

Re: Can I make Max quantity not show?

The code that controls this is in /includes/functions/functions_prices.php if you look for PRODUCTS_QUANTITY_MAX_TEXT_LISTING you will see the code that would have to be changed. I don't think there is an admin setting that will fix it. The standard code checks if the max is not equal to zero

if ($check_max != 0)

you might try changing that to

if ($check_max > 1)

Keep in mind this is a change to a core file so you will have to be careful about updates later on.