Jump to content
Sign in to follow this  
top64

Need to Mass Update Weight field from 0 to 1 in

Recommended Posts

Hi ,

does anyone know how I can do a mass update to the wieght field in my products , as my supplier doesn't use weight on all his products , and I have some other products that have no weight and therefore free.

So what I need is to change any 0.00 weight in my database to 0.01 , as I have a flat fee for freight anything but a 0.00 would be fine.

 

thanks

Bruce

Share this post


Link to post
Share on other sites

Use phpmyadmin to run some sql to update the wt.

 

Needs a little research but you will be able to set the wt field to any value you want

 

http://www.w3schools.com/sql/sql_update.asp


Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile

 

Virus Threat Scanner

My Contributions

Basic install answers.

Click here for Contributions / Add Ons.

UK your site.

Site Move.

Basic design info.

 

For links mentioned in old answers that are no longer here follow this link Useful Threads.

 

If this post was useful, click the Like This button over there ======>>>>>.

Share this post


Link to post
Share on other sites

Backup your database first, then try this in phpMyAdmin:

 

UPDATE `products` SET `products_weight` = '0.01' WHERE `products`.`products_weight` ='0.00';

Share this post


Link to post
Share on other sites
Backup your database first, then try this in phpMyAdmin:

 

UPDATE `products` SET `products_weight` = '0.01' WHERE `products`.`products_weight` ='0.00';

Share this post


Link to post
Share on other sites
Backup your database first, then try this in phpMyAdmin:

 

UPDATE `products` SET `products_weight` = '0.01' WHERE `products`.`products_weight` ='0.00';

 

worked a treat

thanks Peter

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×