Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / Site Wide - Change All Product Weights to a Minimum

Site Wide - Change All Product Weights to a Minimum

Views: 1,092

Results 1 to 4 of 4
15 Jan 2015, 7:22 PM
#1
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Site Wide - Change All Product Weights to a Minimum

Instead of updating hundreds of items individually to a minimum weight is there a trick to doing it site wide?

Example: all 1oz items become 3oz.

Thank you in advance.

15 Jan 2015, 7:40 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Site Wide - Change All Product Weights to a Minimum

SQL:

UPDATE products SET products_weight=3 where products_weight=1;

... assuming all your weights are only in oz and NOT in lbs. If you're using another weight formula, change the numbers accordingly.

15 Jan 2015, 7:49 PM
#3
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: Site Wide - Change All Product Weights to a Minimum

webskipper:

Instead of updating hundreds of items individually to a minimum weight is there a trick to doing it site wide?

Example: all 1oz items become 3oz.

Thank you in advance.

Couple of ways...

One shot deals would use sql statements.

update products set products_weight=3 where products_weight=1

Could be entered into the install sql script field provided in admin panel tools. Remember though that weights are entered as either lbs or kgs, so the appropriate conversion factor should be applied to address the weight(s).

Another is to use a tool such as EasyPopulate or apsona. Those may require other prerequisites to be met to work for you.

26 Aug 2015, 9:32 PM
#4
webskipper avatar

webskipper

Totally Zenned

Join Date:
Nov 2007
Location:
USA
Posts:
876
Plugin Contributions:
2

Re: Site Wide - Change All Product Weights to a Minimum

Thanks for sql patch it worked!