Sync stock between multiple WooCommerce sites
The WooCommerce Stock Synchronization plugin allows you to synchronize the stock values of the same products across multiple WooCommerce shops. Only stock levels are synchronized, not the products themselves. This guide contains all the necessary information to get the plugin up and running quickly.
Before you can synchronize stock levels with the WooCommerce Stock Synchronization plugin, you first need to set some required information.
After installing and activating the plugin, you should see a menu item Stock Synchronization under your WooCommerce button in the main menu. Opening this item will show the following page:
It is in those fields that we must configure only 2 things before the plugin starts to work: URLs and a shared password.
URLs indicate the locations of your WordPress sites you wish to synchronize stock of WordPress products to.
Imagine you have the following 2 sites, which you wish to keep stock synchronized between:
You will then set the configuration on http://www.webshop.com as:
and on http://www.webshop.co.uk as:
When you press Save Changes, additional URL fields will be added. Continue adding sites as needed, at least one URL is required to be able to synchronize stock levels to an other store.
This is a secure password so that the plugin only accepts authorized stock modifications. We recommend a strong password, which you need to configure on each site you’re using the WooCommerce Stock Synchronization plugin on (you need to enter the same password in each store).
Once you’ve entered the URL’s and have set the password, clicking Save Changes will save those details and the plugin will be ready to use.
There are 3 usages of the WooCommerce Stock Synchronization plugin.
- When you save a product
- When an order is placed
- The Push Stock button
Automatic stock synchronization
Stock levels are automatically synchronized when you edit a product and the changes are saved. Also, when the stock increases or decreases because an order was placed or cancelled, this will get synchronized to all the stores you’ve added.
Manually: the Push Stock button
The Push Stock button on the Stock tab will retrieve stock values for ALL products on the site and send these to every site listed in the URLs of the settings page.
- There is a product Car with an SKU of 12345 on both http://www.site.com and http://www.site.co.uk
- On http://www.site.com product Car with SKU of 12345 has a stock of 10
- On http://www.site.co.uk product Car with SKU of 12345 has a stock of 5
- You press the Push Stock button on http://www.site.com
- It then sends the stock value of SKU 12345 to http://www.site.co.uk
- http://www.site.co.uk product Car of SKU 12345 now has a stock value of 10