Zen Cart Logo
Forums / Basic Configuration / Help with Product Quantity

Help with Product Quantity

Locked

Views: 1,355

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
4 Oct 2007, 12:03 PM
#1
basta avatar

basta

New Zenner

Join Date:
Oct 2007
Posts:
7
Plugin Contributions:
0

Help with Product Quantity

Hi, I recently asked a similar question on this subject and I still need help.
I only want 1 of each item added to the cart & I would like the Max 1 to be shown in the cart and category area. How can I get the Max 1 on all my items that have already been listed and on all future items?
I was shown how to do this to each individual item using the product's detail page in the Admin, but I hope I would not have to do it to all 800 items one at a time.
Thanks for any help on this subject.

5 Oct 2007, 10:25 PM
#2
basta avatar

basta

New Zenner

Join Date:
Oct 2007
Posts:
7
Plugin Contributions:
0

Re: Help with Product Quantity

I guess this not worth a reply .... thanks anyway!!!

6 Oct 2007, 4:29 AM
#3
ajeh avatar

ajeh

Oba-san

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

Re: Help with Product Quantity

If you want Maximum to be 1 for all products in the database table products you can run this command in the Tools ... Insert SQL Patches ...

UPDATE products SET products_quantity_order_max = 1;

To make this a default setting when adding products you would need to customize the file:
/admin/includes/modules/product/collect_info.php

and change approximately line 36 from:

                       'products_quantity_order_max' => '0',

to read:

                       'products_quantity_order_max' => '1',

NOTE: there are no overrides for this file ...

6 Oct 2007, 11:57 AM
#4
basta avatar

basta

New Zenner

Join Date:
Oct 2007
Posts:
7
Plugin Contributions:
0

Re: Help with Product Quantity

Thank you, Thank you, Thank you...... it worked...
easy when you know how to do it...

11 Oct 2007, 4:39 PM
#5
ajeh avatar

ajeh

Oba-san

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

Re: Help with Product Quantity

Thanks for the update and glad that this worked for you ... :smile:

29 Oct 2007, 4:00 AM
#6
zidain avatar

zidain

Zen Follower

Join Date:
Oct 2007
Posts:
106
Plugin Contributions:
0

Re: Help with Product Quantity

how do I re-set the SQL entry...I mis-understood this post and now I want to reverse it.

Zidain

1 Nov 2007, 11:06 PM
#7
ajeh avatar

ajeh

Oba-san

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

Re: Help with Product Quantity

To not have a Maximum value set on the Products use the same command but with the 0 value:

UPDATE products SET products_quantity_order_max = 0; 

0 means Unlimited ...