---
title: "Keep a Wholesale Store and a Retail Store in Sync"
url: "https://wpimportexport.com/sync-wholesale-retail-woocommerce-stores/"
description: "Push product changes from your retail store to your wholesale store, keep the wholesale stock, and set wholesale prices with one Content Updater run."
type: post
published: 2026-11-23T17:00:00+00:00
modified: 2026-11-11T10:14:33+00:00
categories: ["Content Sync", "Tutorials", "WooCommerce"]
tags: ["Content Sync", "WooCommerce"]
docs_topics: ["Sync and migration", "WooCommerce"]
---

# Keep a Wholesale Store and a Retail Store in Sync

You run a retail store and a wholesale store with the same products. Names, descriptions and photos should be the same on both, but the wholesale prices are lower, and each store has its own stock. With **Import Export by RockStarLab PRO**, you keep the product data in the retail store, push the changes to the wholesale store, and recalculate the wholesale prices there in one step.

**PRO:** WooCommerce product sync, the Content Updater and custom functions. **Free:** the Content Sync connection between the stores. Use PRO on both stores.

## How it works

1. You edit products in the retail store and push them to the wholesale store.
2. The push copies the product data, prices included. The stock and the reviews of the wholesale store stay as they are.
3. On the wholesale store, the Content Updater sets the regular price of the pushed products to 70% of the retail price.

Our wholesale prices are 30% below retail. Use your own rule in the function below.

## Before you start

- Connect the stores in **Import Export → Content Sync** (see [how Content Sync works](https://wpimportexport.com/how-content-sync-works-api-keys-push-pull/)).
- [Back up the wholesale store](https://wpimportexport.com/how-to-create-a-wordpress-website-backup-and-restore-it/), or ask your AI agent to start the backup. The push and the price update both change products.

## Step 1: Create the wholesale price function

On the wholesale store, open **Import Export → Functions** and click **New Function**. Name it, paste the code and test it with a retail price:

```
// Wholesale price: 70% of the retail price, rounded to cents.
if ($value === '' || $value === null) {
    return $value;
}
return number_format(round((float) $value * 0.7, 2), 2, '.', '');
```

![New Function window: Wholesale price (70% of retail) with PHP code, test value 22 and output 15.40](https://wpimportexport.com/wp-content/uploads/2026/11/01-wholesale-function.webp)

_The function returns 70% of the price, rounded to cents._

For a retail price of 22, the function returns 15.40. Click **Save Function**. You create it once.

## Step 2: Push the changes from the retail store

In our retail store, we raised the price of the Polo from $20 to $22, rewrote the description of the Sunglasses and added a new product, the Pour-Over Kettle at $48. In **Products**, select the products, click **Sync Content**, choose the wholesale store and push (see [how to sync WooCommerce products](https://wpimportexport.com/how-to-sync-woocommerce-products-between-two-wordpress-sites/)).

The push updated 2 products and created 1. On the wholesale store, the prices were now the retail prices: $22, $90 and $48. The stock of the Polo stayed at 120, the wholesale stock, while the retail store has 20.

## Step 3: Recalculate the wholesale prices

On the wholesale store, open **Import Export → Content Updater** and choose **WooCommerce Products**. Add a filter: **Modified Date**, **Greater or Equal**, the date of the push. Our filter found the 3 pushed products:

![Content Updater step 2: filter Modified Date greater or equal 11/11/2026, 3 items to update](https://wpimportexport.com/wp-content/uploads/2026/11/02-modified-today.webp)

_The filter finds the products changed by the push._

In **Select Fields to Update**, click **Regular Price**. In **Field Transformations**, click **Assign Transformations** for it, find the wholesale function and click **Add**. **Test Pipeline** shows the result for a test value:

![Field Transformations for Regular Price with the wholesale function, Test Pipeline 22 to 15.40](https://wpimportexport.com/wp-content/uploads/2026/11/03-regular-price-transformation.webp)

_The wholesale function is assigned to Regular Price._

Click **Apply Transformations**, go to the last step and click **Start Update**:

![Content Updater: Update Complete, 3 processed, 3 updated, 0 skipped, 0 errors](https://wpimportexport.com/wp-content/uploads/2026/11/04-update-complete.webp)

_All 3 products were updated._

The wholesale store now shows the wholesale prices, $15.40, $63.00 and $33.60, with its own stock:

![Wholesale store products: Pour-Over Kettle $33.60 stock 15, Polo $15.40 stock 120, Sunglasses $63.00 stock 20](https://wpimportexport.com/wp-content/uploads/2026/11/05-wholesale-prices.webp)

_Wholesale prices and the wholesale stock after the update._

## Tips

- **Run the update once after each push.** The update changes the modified date of the products, so the same filter finds them again, and a second run would take another 30% off.
- **Filter by the date of the push.** A product that you edited on the wholesale store on the same day also matches the filter. Check the count before you start the update.
- **Sale prices.** If your products have sale prices, the **Sale Price** field is in the same list; assign the same function to it.
- **Variable products.** See [syncing variable products between stores](https://wpimportexport.com/sync-woocommerce-variable-products-between-stores/).
- **Prices from a file.** If your wholesale prices come from a price list, [update them from a CSV](https://wpimportexport.com/how-to-bulk-update-woocommerce-products/) instead.

## With an AI agent

An AI agent connected to the wholesale store through the WordPress MCP Adapter (see [connecting Claude Code to WordPress](https://wpimportexport.com/connect-claude-code-to-wordpress-mcp/)) can check the result:

```
Show the products changed today with their regular price and stock.
```

In our run, the agent called `rsl-ie-pro/update-preview` with the Modified Date filter. It returned the 3 products: Pour-Over Kettle 33.60 (stock 15), Sunglasses 63.00 (stock 20) and Polo 15.40 (stock 120). The preview reads the products without changing them.

## FAQ

### Does a push overwrite the wholesale stock?

No. When the wholesale store manages the stock of a product, its stock quantity and stock status stay as they are. A new product gets the stock of the retail store; change it after the first push.

### Does a push overwrite the wholesale prices?

Yes. The prices come with the product, which is why you run the Content Updater after each push.

### Does the product rating change?

No. A push does not overwrite the average rating, the review count or the sales count of a wholesale product.

### Is this in the free plugin?

No. WooCommerce product sync, the Content Updater and functions are PRO features.

## Related Guides

- [How to Sync WooCommerce Products Between Two Sites](https://wpimportexport.com/how-to-sync-woocommerce-products-between-two-wordpress-sites/)
- [Bulk Update WordPress Content with Content Updater](https://wpimportexport.com/bulk-content-update-in-wordpress-with-content-updater/)
- [Sync WooCommerce Variable Products Between Two Stores](https://wpimportexport.com/sync-woocommerce-variable-products-between-stores/)

Get the free plugin on [WordPress.org](https://wordpress.org/plugins/import-export-by-rockstarlab/).
