Guest Posted May 3, 2005 Share Posted May 3, 2005 Hi all! I want to know if there is a way to select a manufacturer and raise the prices by a given percent. Thanks! Matt Link to comment Share on other sites More sharing options...
Rob123 Posted May 3, 2005 Share Posted May 3, 2005 You can run the following MySQL statement with phpMyAdmin. In my example, all products with a manufacturer's id of "17" will increase in price by 5% update products set products_price = products_price * 1.05 where manufacturers_id = '17'; The code above should work unless I have a typo. HTH, Robert Link to comment Share on other sites More sharing options...
Guest Posted May 3, 2005 Share Posted May 3, 2005 You can run the following MySQL statement with phpMyAdmin. In my example, all products with a manufacturer's id of "17" will increase in price by 5% update products set products_price = products_price * 1.05 where manufacturers_id = '17'; The code above should work unless I have a typo. HTH, Robert <{POST_SNAPBACK}> Thank you! I will give it a try :D Link to comment Share on other sites More sharing options...
Guest Posted May 12, 2005 Share Posted May 12, 2005 Please Help! This is not working.. :( Just says "0 columns updated" Link to comment Share on other sites More sharing options...
♥kymation Posted May 12, 2005 Share Posted May 12, 2005 To make this a bit easier, you can use the Price Updater contribution. Just follow the link in my sig. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Rob123 Posted May 12, 2005 Share Posted May 12, 2005 Please Help! This is not working.. :( Just says "0 columns updated" <{POST_SNAPBACK}> As long as you're not getting an error message, my guess is that you are using a manufacturer_id that does not exist. To make this a bit easier, you can use the Price Updater contribution. Just follow the link in my sig. Regards Jim <{POST_SNAPBACK}> Jim, It seems your contribution would help people who are not comfortable using MySQL scripts. Matt, Either way, let us know if you resolved your problem. Robert Link to comment Share on other sites More sharing options...
♥kymation Posted May 12, 2005 Share Posted May 12, 2005 True. I assumed that Matt was not that familiar with using SQL, which may not be a true assumption. Regards Jim See my profile for a list of my addons and ways to get support. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.