Zen Cart Logo
Forums / General Questions / Need Help On Product Qty Units

Need Help On Product Qty Units

Locked

Views: 1,046

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
11 Sep 2009, 12:35 AM
#1
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Need Help On Product Qty Units

How would I go about changing my whole cart Product Qty Units to 5 without going through each product individually. I have 2100 products and this will be very time consuming without a code or something. Thanks in advance.

11 Sep 2009, 4:39 AM
#2
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Need Help On Product Qty Units

Ajeh do you know if there is a code I can insert to update my whole store instead of doing it one by one. Thank you.

11 Sep 2009, 5:08 AM
#3
tino_schlegel avatar

tino_schlegel

Totally Zenned

Join Date:
Nov 2007
Location:
Melbourne, Australia
Posts:
532
Plugin Contributions:
0

Re: Need Help On Product Qty Units

You can try to update your product quantity in the database manually.

UPDATE `products` SET `products_quantity` = '5';

BACKUP your database before you try this.

19 Sep 2009, 8:36 PM
#4
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Need Help On Product Qty Units

tino.schlegel:

You can try to update your product quantity in the database manually.

UPDATE products SET products_quantity = '5';


It's actually this but thank you so much.

 > UPDATE `products` SET `products_quantity_order_units` = '5';
19 Sep 2009, 8:42 PM
#5
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Need Help On Product Qty Units

I have another question though, is it possible just to change products_quantity_order_units just for a particular category instead of changing the whole store, or do I have to do it manually. If I can how do I do it like that. Thank in advance.
UPDATE products SET products_quantity_order_units = '5';

21 Sep 2009, 1:26 PM
#6
ajeh avatar

ajeh

Oba-san

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

Re: Need Help On Product Qty Units

If the Products all use the same master_categories_id you could use:

UPDATE products SET products_quantity_order_units = 5 WHERE master_categories_id = XX;

where XX is the master_categories_id of these Products ...

NOTE: be sure to backup your database before making global changes like this ...

21 Sep 2009, 2:31 PM
#7
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

Re: Need Help On Product Qty Units

Ajeh:

If the Products all use the same master_categories_id you could use:

UPDATE products SET products_quantity_order_units = 5 WHERE master_categories_id = XX;

> 
> NOTE: be sure to backup your database before making global changes like this ...

Thanks Ajeh that worked out great. Saved me a lot of time.