Back to blog
4 min read Content Sync

Sync WooCommerce Variable Products Between Two Stores

You changed the prices of a variable product on your staging store, ended a sale and added a new variation. Now the live store should get exactly these changes, without a second copy of every variation and without retyping prices. With Import Export by RockStarLab PRO, you select the product on staging and push it to live with Content Sync. The test is a real push of a hoodie with five variations.

PRO: Content Sync between two sites and WooCommerce products are part of PRO. Free: Content Sync push and pull for posts and pages.

What gets synced

When you push a variable product, the variations go with it. For each variation, Content Sync sends:

  • the attribute values (for example Color Green, Logo Yes);
  • SKU, regular price, sale price and sale dates;
  • stock settings: stock quantity, stock status and backorders;
  • weight, dimensions, tax class and the other variation fields.

On the live store, every variation from staging is matched to an existing variation: by the link saved at an earlier push, else by SKU, else by the same attribute values. A matched variation is updated, a new one is created, and a variation that you created only on live stays as it is.

Our example

The Hoodie exists on both stores with four variations. On staging we made three changes:

  • Red, no logo: the regular price went up to 48 and the sale ended (live still sold it at 42).
  • Green, no logo: a sale price of 39.
  • A new variation Green with logo, 49, with 15 in stock.

So staging now has five variations, one of them new (#71597):

Staging Hoodie with five variations, including the new variation 71597 Green with logo
Staging: four existing variations and one new.

Before you push

Both stores need PRO and a connection between them (Import Export → Content Sync); see how to sync WooCommerce products between two sites for the setup. Use PRO 2.1.15 or newer on both sites. A push changes products on the live store, so back up the live site first, through the plugin’s Backups or UpdraftPlus, or ask your AI agent to start the backup.

Step 1: Select the product and the site

On staging, open Products → All Products, tick the variable product and click Sync Content above the list. Choose the live site and click Push to Site:

Sync Content dialog with one selected product, the Live site selected and the Push to Site button
Choose the live site and push.

Step 2: Confirm the mapping

Click Auto-match by Title. The Hoodie on staging is matched to the Hoodie on live, and the action is Update. You map only the product; its variations are matched automatically. Click Confirm & Sync:

Map Posts for Sync: Hoodie product ID 1960 mapped to Update: Hoodie (ID: 1960)
Map only the product; variations are matched automatically.

After a few seconds the plugin reports the push:

Sync Content: Successfully pushed 1 post(s) to remote site
The push is done.

Step 3: Check the live store

On live, the Hoodie now has five variations: the four old ones with their old IDs and the new Green with logo (#2048). No variation was added twice:

Live Hoodie with five variations: old IDs 1983, 1976, 1977, 1978 and the new 2048
Live: old variations updated, one new variation, no copies.

The Red variation has the regular price 48 from staging and no sale price, so the shop shows it at 48 without a sale badge:

Red Hoodie variation on live: SKU woo-hoodie-red, regular price 48, empty sale price
The ended sale is removed on live.

The Green variation sells at 39 and the new Green with logo at 49 with 15 in stock, as on staging.

Tips

  • Keep SKUs the same on both stores. SKU is the most reliable match for a variation that was never synced.
  • Removed variations: a variation that came to live with an earlier push and that you deleted on staging is deleted on live at the next push of the product.
  • Many products: tick several products in the list; each one is pushed with its variations.

With an AI agent

An AI agent connected to the live site through the WordPress MCP Adapter (see connecting Claude Code to WordPress) can check the result of the push:

List the SKU, price, sale price and stock of every Hoodie variation.

In our run, the agent called rsl-ie-pro/export-preview for the Hoodie with the option variation_rows. It returned five rows with five different SKUs: woo-hoodie-red at 48 with no sale price, woo-hoodie-green at 45 with the sale price 39, and woo-hoodie-green-logo at 49 with 15 in stock.

FAQ

Do I have to map every variation?

No. You map the product; its variations are matched by the link from an earlier push, by SKU, or by the same attribute values.

What happens to variations that exist only on the live store?

Variations created on live are kept. Only a variation that came from an earlier push and no longer exists on staging is deleted.

Is a sale that ended on staging removed on live?

Yes. If the variation has no sale price on staging, the sale price on live is cleared with the push.

Can I move variations without Content Sync?

Yes. With PRO you can also export the variations to a CSV file with SKU, price and stock, and import the file on the other store.

Get the free plugin on WordPress.org.

Dmitriy
About author

Dmitriy

WordPress Developer with 15+ years of commercial experience. Elite Author on ThemeForest and creator of custom WordPress plugins. Passionate about clean code, performance optimization, and building useful tools for the WordPress community.

JOIN THE CONVERSATION

Comments 0

Have a question or a tip to share? Leave it below.

Leave a comment

Your email address will not be published. Required fields are marked *

We store your name, email and comment to show and moderate it; your email is never published. Spam protection is provided by Cloudflare Turnstile and profile pictures by Gravatar. See our Privacy Policy.


Try the plugin with no risks!

New users get 1 month with access to all premium features. Experience the most powerful WordPress data engine today.

Download Now
Get PRO for FREE