---
title: "Update WooCommerce Prices in Several Stores from One Price File"
url: "https://wpimportexport.com/update-woocommerce-prices-multiple-stores/"
description: "Update WooCommerce prices in several stores from one file: each store imports only the price columns by SKU, and a trigger re-runs it when the file changes."
type: post
published: 2026-12-01T17:00:00+00:00
modified: 2026-11-26T06:53:43+00:00
categories: ["Automation", "WooCommerce"]
tags: ["Product Prices", "sync WordPress sites", "WooCommerce"]
docs_topics: ["Sync and migration", "WooCommerce"]
---

# Update WooCommerce Prices in Several Stores from One Price File

Green coffee got more expensive, and the roastery’s owner raised the price of Espresso Blend from 24.90 to 26.50, Filter Roast from 9.50 to 9.90, and put Decaf on sale for the first two weeks of December. The same products are sold in the main store and in the café’s store, and every price change used to mean editing the same products twice and hoping nobody forgot the sale dates in one of them. Now the owner keeps one price file, and each store picks up a new version by itself.

**PRO:** importing WooCommerce products is part of PRO. Import from a URL and triggers work in the free plugin. Tested with Import Export by RockStarLab 2.2.45 and PRO 2.1.41, WooCommerce 11.2.1, WordPress 7.1.5.

## Short Answer

Put the price list at a fixed URL, for example in the Media Library of the main store. In every store, import it once as **WooCommerce Products** from that URL with only the price columns, matching products by SKU, updating matches and skipping unknown SKUs. Then add a trigger that runs the same import when **The import file at its URL changes**. When you replace the file, each store updates its prices within an hour.

## The Price File

Five columns are enough. Anything else, such as names or descriptions, stays out of the file, so the import cannot change it.

```
sku,regular_price,sale_price,date_on_sale_from,date_on_sale_to
RST-ESP-1000,26.50,,,
RST-FIL-250,9.90,,,
RST-DEC-500,14.00,12.50,2026-12-01,2026-12-14
RST-GIFT-BOX,39.00,,,
```

The last row is a gift box that only exists in a store that is not set up yet. Every store skips it until it has a product with that SKU.

An empty `sale_price` cell is not “keep whatever is there”. When the column is in the file, an empty cell removes the sale and its dates, the way the WooCommerce product CSV import does. We checked it: Filter Roast had a sale of 8.90, and a file with an empty sale cell for it brought the price back to 9.90. An empty `regular_price` or `stock_quantity` cell, on the other hand, leaves the value unchanged. If some stores run their own sales, leave the sale columns out of the shared file.

The file has to be reachable at the same URL every time. We uploaded it to the main store’s Media Library; a file on your own server or a Google Sheets share link can be imported from a URL too. To publish a new version in the Media Library, replace the file on the server or use a plugin that replaces media files under the same name: uploading a second file creates a new URL.

## Step 1: Import the File Once in Each Store

In the café store open **Import Export > Import**, choose **WooCommerce Products**, paste the file URL and fetch it:

![Import Step 2 with the price list URL roastery-prices.csv fetched from the main store](https://wpimportexport.com/wp-content/uploads/2026/11/import-woocommerce-price-list-from-url-1024x365.webp)

_The café store fetches the price list by URL._

Click **Auto Map**. The five columns go to the fields with the same names:

![Auto Map: sku, regular_price, sale_price, date_on_sale_from and date_on_sale_to mapped to the fields with the same names](https://wpimportexport.com/wp-content/uploads/2026/11/auto-map-price-columns-sku-regular-sale-dates-1024x318.webp)

_Five price columns, nothing else._

On the options step choose **SKU** under **Check for Existing Items by Field**, **Update** for matches and **Skip** when no match is found. A typo in a SKU then cannot create an empty product.

![Import options: Check for Existing Items by Field SKU, If Match Found Update, If No Match Found Skip](https://wpimportexport.com/wp-content/uploads/2026/11/import-prices-match-sku-update-skip-1024x875.webp)

_Match by SKU, update, skip unknown SKUs._

The import updated the three coffees and skipped the gift box:

![Import Completed Successfully: Successful 3, Updated 3, Created 0, Skipped 1, Failed 0](https://wpimportexport.com/wp-content/uploads/2026/11/import-prices-3-updated-1-skipped-1024x455.webp)

_Three products updated, the gift box skipped._

After the import, Espresso Blend cost 26.50 and Filter Roast 9.90 in the café store. Decaf still cost 14.00 with 12.50 waiting as the sale price from 1 to 14 December; WooCommerce switches the price on the first day. Stock, names and descriptions did not change. We ran the same import in the main store with the same result.

## Step 2: Run the Import When the File Changes

A schedule would download the file every hour or every day, changed or not. A trigger runs the import only when the file is different. Open **Import Export > Jobs Log > Triggers**, choose the import job from step 1 under **Job to run** and pick **The import file at its URL changes**:

![New trigger: Job to run #254 Import WooCommerce Products (URL), Starts when The import file at its URL changes, Name New price list](https://wpimportexport.com/wp-content/uploads/2026/11/trigger-import-when-price-file-changes-1024x282.webp)

_The import runs again when the file changes._

The plugin checks the URL every hour. To test it we changed the file: Espresso Blend to 27.00, and a sale for Filter Roast at 8.90 from today until 31 December. The next check started the import, and the main store showed 27.00 and 8.90 without anyone opening the import screen.

Create the same trigger in each store. Each store checks the file on its own, so the stores can update a few minutes apart within the same hour.

## With WP-CLI or an AI Agent

Each store needs two steps: one import of the file and one trigger. Both run from WP-CLI:

```
# fetch the price file and import only its columns, matched by SKU
wp rsl-ie ability rsl-ie/upload-from-url '{"url":"https://example.com/wp-content/uploads/prices.csv"}' --user=admin
wp rsl-ie ability rsl-ie-pro/import-start '{"request_id":"prices-1","file_id":"FILE_ID","import_type":"woo_product","mapping":[{"source_index":0,"target_field":"sku"},{"source_index":1,"target_field":"regular_price"},{"source_index":2,"target_field":"sale_price"},{"source_index":3,"target_field":"date_on_sale_from"},{"source_index":4,"target_field":"date_on_sale_to"}],"options":{"unique_field":"sku","if_exists":"update","if_not_exists":"skip"}}' --user=admin

# run that import again whenever the file at its URL changes
wp rsl-ie ability rsl-ie/trigger-create '{"name":"Price file changed","source_job_id":453,"event":"file_changed"}' --user=admin
```

We ran this with Import Export by RockStarLab 2.2.64 and PRO 2.1.57 on our test store. Import job 453 read the four rows, updated three products and skipped the unknown SKU; the sale price and the sale dates from 1 to 14 December arrived together, and stock and names stayed as they were. Then we changed two prices in the file. The next file check noticed the change and started import job 454 by itself, which wrote the new regular price and a new sale price to the store.

An AI agent connected through the WordPress MCP Adapter sets this up in every store from one request. Without the plugin, WordPress 7.1.5 gives the agent only three read-only abilities for site, user and environment information. The import from a URL, the SKU match and the file trigger are abilities of the plugin:

```
With Import Export by RockStarLab, import https://example.com/wp-content/uploads/prices.csv as WooCommerce products. Map only sku, regular_price, sale_price, date_on_sale_from and date_on_sale_to, match products by SKU, update matches and skip unknown SKUs. Then create a trigger that runs this import again when the file at its URL changes.
```

Only the mapped columns are written. A store that runs its own sales gets the same request without sale_price and the two dates, and the agent cannot touch its sales.

## Stores with Different Prices

When one store sells at different prices, for example a wholesale store, give it its own file, or import the shared file and recalculate the prices there afterwards. [Keep a Wholesale Store and a Retail Store in Sync](https://wpimportexport.com/sync-wholesale-retail-woocommerce-stores/) shows a function that does that recalculation in one step.

## FAQ

### Can I update WooCommerce prices in several stores at once?

Yes. Keep one price file at a fixed URL and import it in each store as WooCommerce Products with only the price columns, matched by SKU. A trigger re-runs the import when the file changes.

### Does the import change names, descriptions or stock?

No. Only the columns in the file are written. Our test changed prices and sale dates and left stock and names as they were.

### Does an empty sale price remove a sale?

Yes, when the sale_price column is in the file. An empty cell removes the sale and its dates. Leave the column out if the stores manage their own sales.

### How quickly do the stores get a new price file?

The file-change trigger checks the URL every hour, so within an hour.

### Can an AI agent update prices in several stores?

Yes. With Import Export by RockStarLab connected through the WordPress MCP Adapter, an agent imports the price file by SKU in each store with only the price columns and creates the file-change trigger.

## Related Guides

- [How to Update WooCommerce Prices and Stock by SKU Using CSV](https://wpimportexport.com/how-to-update-woocommerce-prices-stock-by-sku-csv/)
- [Trigger WordPress Imports and Exports with Webhooks and Events](https://wpimportexport.com/trigger-wordpress-import-export-webhook-events/)
- [Schedule WooCommerce Sale Prices with Start and End Dates from a Spreadsheet](https://wpimportexport.com/schedule-woocommerce-sale-prices-csv/)
- [Sync WooCommerce Stock Between Two Stores That Sell the Same Products](https://wpimportexport.com/sync-woocommerce-stock-between-two-stores/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/). Product imports are part of PRO.
