---
title: "How to perform a bulk price change for all products in OSCommerce"
description: "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..."
url: https://www.inmotionhosting.com/support/edu/oscommerce/bulk-price-change/
date: 2013-02-11
modified: 2021-08-16
author: "Scott Mitchell"
categories: ["OsCommerce"]
type: post
lang: en
---

# How to perform a bulk price change for all products in OSCommerce

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](/support/edu/cpanel/how-to-log-into-cpanel/) dashboard.
2. Locate your **phpMyadmin** tool icon, located in the *Databases* category. [![phpmyadmin icon](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_01-phpmyadmin-1024x178.png)](/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_01-phpmyadmin.png)
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](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_2-select-db.png)](/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_2-select-db.png)
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](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_3-work-tabs.png)](/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_3-work-tabs.png)
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 a fixed price(.15) `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%. [![4-enter-query](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_4-enter-query.png)](/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_4-enter-query.png)
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](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_prices-before.png)](/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_prices-before.png) [![after price increase](https://www.inmotionhosting.com/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_prices-after.png)](/support/wp-content/uploads/2013/02/oscommerce_bulk-price-increase_prices-after.png)
