All the products in your WooCommerce shop have their own Stock Quantity which refers to the available amount of the specific product. WooCommerce enables you to manage this value and automatically decreases the corresponding quantity after a customer purchased one of your products.
If you have set up several shops within one WordPress Multisite environment, each of your shop sites has a separated stock quantity management. Therefore, when a customer buys one of your products from one shop site, the Stock Quantity of the same products of other sites within your multisite will not be updated.
Central Stock for WooCommerce by Inpsyde allows your WooCommerce store to automatically synchronize the stock of products with the same SKU across all your shops in a WordPress Multisite Network.
Installation ↑ Back to top
Before you install Central Stock for WooCommerce, please make sure you have already setup a Multisite. If you need help, follow this tutorial: How to install and set up a WordPress Multisite.
Also make sure WooCommerce is Network Installed, but not Network Activated: the activation should be set on each site belonging to the Multisite Network where you want to set up a store.
To install the plugin follow the steps below:
- Download the .zip file from your WooCommerce account.
- Go to: WordPress Admin > My Sites > Network Admin > Plugins > Add New and Upload Plugin with the file you downloaded with Choose File.
- Install Now and then Network Activate the extension. This will make the plugin active for all sites on the Network.
More information at: Install and Activate Plugins/Extensions.
Requirements ↑ Back to top
- WordPress Multisite 4.8+
- PHP 7.0.x or higher
Setup and configuration ↑ Back to top
Setup Shops within the Multisite ↑ Back to top
Central Stock is designed to work in a Multisite shop network. To setup multiple shops within one WordPress Multisite:
- Go to: My Sites > Network Admin > Sites and add a new site by clicking Add New.
- Fill in the following information:
- Site Address (URL): This is the URL of your new website.
- Site Title: This is the site title of your new website. It will be shown in your admin menu in the WordPress backend and possibly as well on your site in the frontend.
- Site Language: This is the language for the admin menu of your new site.
- Admin Email: This is the email of the respective site admin. You can choose the one of your main site or create a new user with a new Email address.
- Click on Add Site.
- Create as many new sites as you need for your Multisite shop environment.
Synchronize Stock Quantity of Products ↑ Back to top
First of all set up some products. For example, create a simple product in several sub-sites belonging to your Multisite Network. If you need help with creating products in your WooCommerce shop, you can find more information here.
To connect the same product between your shops in a Multisite Network, you need to set the same Stock Keeping Unit (SKU) value for the corresponding products on each shop site.
To setup the SKU, for example in a simple product, follow the steps below:
- Go to: My Sites and select the Dashboard of one of your shops.
- Select Products in your admin menu on the left.
- Choose one of your existing products for editing or Add new product.
- Go to: Product data > Inventory
- Set a SKU for the product and remember the value.
- Tick the Checkbox: Enable stock management at product level.
- Save changes by clicking Update.
- Go to: My Sites and select the Dashboard of another shop which contains the same product.
- Like in the previous steps, set the SKU for the corresponding product in this shop. Remember to fill in the same SKU value you set for the product in your other shop before and to Enable stock management at product level
- Save changes by clicking Update.
- Test the functionality by:
- changing the related product Stock Quantity in one of your sites. Performing that action the stock quantity of the corresponding product will update accordingly to the changes across all your shop sites.
- purchasing one of the product items in one of your shops. Performing that action the Stock Quantity of all related products will decrease by the same quantity.
Similarly you can also set up the SKU for other type of products. For example, for a variable product you can define a SKU for every variation, hence synchronize the related Stock Quantity across the Network.
Usage ↑ Back to top
Central Stock automatically synchronizes the Stock Quantity of all products with the same SKU across your shops within a WordPress Multisite Network.
When you change the Stock Quantity of a product which is connected across your sites via SKU, the quantity within all product pages will change accordingly.
When a customer buys your products, the quantity of all connected products will decrease accordingly. So, the correct quantity value will be shown on all related product pages.