How to Start WooCommerce Product Stock Synchronisation?

All you need to do is to add specific WooCommerce stores you would like to configure inventory sync with, the plugin will handle the rest.

The products stock status and quantities will be automatically updated on all connected stores when a product with the same SKU has been updated in the admin area or when it has been purchased. If you want to sync all the stock, but do not want to update every single product manually, you can use manual resync tool.

If you would like to sync more product data like images, prices or custom fields, take a look at Simple WordPress Crossposting plugin or read more about the differences.

1. Connect stores in plugin settings

In order to start WooCommerce inventory sync, we need to connect stores with each other. It can be easily done in plugin settings.

Open WooCommerce > Settings > Products > Inventory tab and scroll down a little bit.

add a store to sync product inventory with
For a regular (standalone) WooCommerce websites you need to provide application password, which is very easy to get, more info here.

The process of adding a new store becomes 10 times easier if you use WordPress Multisite.

add a store within a WordPress Multisite network to sync product stock quantity
If your stores are a part of WordPress Multisite network, you don’t have to provide anything, just select stores you need from a dropdown list.

It is not necessary to install the plugin on the second store. But if you would like your WooCommerce inventory sync to work both ways, then – yes, you have to install the plugin and connect the stores in plugin settings as well.

2. Start the automatic inventory sync

Once you added stores in plugin settings, all is ready – the plugin will start updating product stock statuses and stock quantities on the added stores for the products with the same SKUs when:

  • You have updated a product or a product variation manually in admin and changed its Stock status or Stock quantity.
  • Someone purchased a product on your website and as a result its Stock quantity changed.
  • You created an order manually and added some products there which resulted in their stock quantity change.

It is also possible to run manual re-sync tool that will update all the products inventory in the background.

Exclude specific products from the inventory sync

If you want my plugin to ignore products with some specific IDs or even product categories, you can add them in one of the filter hooks below:

  • rudr_sps_exclude_product_ids
  • rudr_sps_exclude_category_ids
  • rudr_sps_exclude_tag_ids


add_filter( 'rudr_sps_exclude_product_ids', function() {
	return array( 5, 15 ); // product (or variation) IDs to exclude
} );

Information for Developers

My WooCommerce stock synchronisation plugin uses two filter hooks in order to update stock status and quantities.

  • woocommerce_product_set_stock
  • woocommerce_variation_set_stock

When a stock status is changed on your store, WooCommerce triggers these two action hooks (either the hook for variation or the hook for a simple product). And my plugin listens to them.

So, for example if you developed a solution that allows to change the product stock quantity:

$product->set_stock_quantity( $stock_qty );

Then you have to add the action hook mentioned above in order to make my plugin detect it.

$product->set_stock_quantity( $stock_qty );
do_action( 'woocommerce_product_set_stock', $product );

3. Run full product stock resync in the background

Since 1.4 version of the plugin you can find “Sync product inventory” tool in the list of WooCommerce tools, it allows to push the actual values of product stock status and quantity to a store selected from a dropdown list.

The tool is optimised for a high volume of products.

WooCommerce inventory sync in the background
You can find this tool in WooCommerce > Status > Tools