InMotion Hosting Support Center
This is archived and no longer maintained. Any information contained in this article may be out of date.

When working with e-commerce programs like osCommerce, there are times when you may want or need to increase your prices. This is fine if you are working with a limited number of products, but if you have thousands of products, this can be very time consuming and tedious. By default there is no setting to add a specific dollar or percentage to all products at once. This article will demonstrate how to add a price increase (or decrease) to all products at once in your osCommerce program by using the phpMyAdmin tool within cPanel.

Performing a bulk price change in phpMyAdmin for osCommerce.

  1. Log into your cPanel dashboard.
  2. Locate your phpMyadmin tool icon, located in the Databases category.
    phpmyadmin icon
  3. Once in the phpMyAdmin dashboard, look to the left hand panel and locate the database for your osCommerce installation. Click on the database name to go to the next screen. In our example, the database is named oscom73.
    click database name
  4. This opens up the list of tables in the right hand panel. Click on the SQL tab found across the top of the table list.
    click on SQL tab
  5. You are now on the SQL Query construction screen. From here you will want to create the query that will add the price increase. Below are a couple of code samples for adding a constant amount or increasing the prices by a percentage.

    Sample code to increase all prices by fifteen cents (.15).
    UPDATE products SET products_price = products_price+0.15

    Sample code to increase all prices by ten percent (10%)
    UPDATE products SET products_price = products_price*1.10

    Sample code to decrease all prices by ten percent (10%)
    UPDATE products SET products_price = products_price*.90
  6. Once you have entered the query code, click on the Go button in the lower right hand corner. This will send the command to the database to increase the prices. Our example query will increase the prices of our products by 10%.
  7. After the query runs, you will see a success message at the top telling how many rows it changed. In our small database, it changed the prices for 28 products. Below is a before and after example of some prices using this method.
    Before After
    before price increase after price increase

Related Questions

Here are a few questions related to this article that our customers have asked:
Ooops! It looks like there are no questions about this page.
Would you like to ask a question about this page? If so, click the button below!
Ask a Question

Support Center Login

Our Login page has moved, Click the button below to be taken to the login page.

n/a Points
2015-04-08 3:20 am

For changing bulk prices in PrestaShop this extension is 100% recommended: 

n/a Points
2014-04-11 11:51 am

somehow my comment went to wrong post too... it should be related to this post: Bulk price changes.

I need change prices for each individual item to a specific dollar amount.  Not by a %.

40,963 Points
2014-04-11 2:14 pm
Hello Sheri,

Step 5 in the tutorial above shows how to make a price change using a direct price. If you want an add-on, you may to checkout Easy Populate and Products Attribute add-on. I hope this helps to provide the answer you seek.

Please let us know if you have any further questions.

Arnel c.
n/a Points
2014-04-11 11:49 am

Needing a tool to change the prices by specific dollars instead of a percentage of a product line.

2014-01-13 2:53 pm
somehow my comment went to wrong post... it should be related to this post: Bulk price changes.
The question was if its possible to apply this command to certain items, or certain categories and not to all of the products. If it is possible, it would be great if you could point out how.

thanks again

Post a Comment

Email Address:
Phone Number:

Please note: Your name and comment will be displayed, but we will not show your email address.

5 Questions & Comments

Post a comment

Back to first comment | top

Need more Help?


Ask the Community!

Get help with your questions from our community of like-minded hosting users and InMotion Hosting Staff.

Current Customers

Chat: Click to Chat Now E-mail:
Call: 888-321-HOST (4678) Ticket: Submit a Support Ticket

Not a Customer?

Get web hosting from a company that is here to help. Sign up today!