Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Can I raise price by manufacturer (by %)


Guest

Recommended Posts

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

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

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

Thank you! I will give it a try :D

Link to comment
Share on other sites

  • 2 weeks later...

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

Please Help! This is not working..  :(

 

Just says "0 columns updated"

 

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

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...