Synchronize item and item variant stock status
The WooCommerce Connector provides a stock status synchronization feature that lets Business Central control how product availability appears in WooCommerce when stock is not managed by the webstore.
When stock status synchronization occurs
The WooCommerce Connector synchronizes stock status for an item or item variant when:
Manage Stock on Webstore is disabled
Stock Status contains a value
If Manage Stock on Webstore is turned on:
WooCommerce determines stock availability based on quantity
Stock synchronization is not used
Supported features
Stock status synchronization is supported with the following WooCommerce Connector features:
- Item synchronization
- Product variations as items
- Item variant synchronization for item variants that are mapped to WooCommerce product variations
Stock status indicator
Use the Stock Status field to view the stock availability of an item or item variant.
The Stock Status field appears in the following locations:
Item Card page on the Webstore FastTab
The Stock Status field appears only when Manage Stock on Webstore is turned off.
Webstore Item Mapping page, in the Inventory section of the Webstore Item - Details FactBox
Webstore Item Variant Mapping page
The Stock Status field maps to the WooCommerce stock_status property.
The following table displays the mapping between Business Central and WooCommerce.
| Business Central value | WooCommerce value |
|---|---|
| In Stock | instock |
| Out of Stock | outofstock |
| On Backorder | onbackorder |
| Blank | Not synchronized |
Synchronization behavior
The following sections describe the stock status synchronization behavior.
Push synchronization (Business Central → WooCommerce)
Business Central sends the stock status to WooCommerce only when:
Manage Stock on Webstore is disabled on the item or item variant.
Stock Status contains a value.
If Stock Status is blank, the WooCommerce Connector excludes the field during synchronization and WooCommerce retains the existing value for the item or item variant.
Pull synchronization (WooCommerce → Business Central)
During pull synchronization:
The connector always reads stock_status from WooCommerce.
The value maps to Stock Status in Business Central.
If WooCommerce returns an unknown or empty value, the Stock Status field in Business Central remains blank.
Related information
Synchronize items
Synchronize an item and variants
Item and item variant stock status
Product variations as items
Feedback
To send feedback about this page, select the following link:
