In this guide
Why the numbers differ
A retailer can have five units available on its shop floor while WooCommerce still shows seven online. A customer then places an online order for six, even though those six units are no longer physically available. This is a stock synchronisation problem, not necessarily a WooCommerce checkout problem.
It usually appears when a point-of-sale (POS) system and WooCommerce each change quantities independently. A scheduled sync, an unreliable internet connection or an old stock update can leave one system working with yesterday’s numbers. Simply making the sync run more often may reduce the delay, but it does not fix conflicting updates.
The more reliable approach is to decide which system controls inventory, record stock movements consistently and make retries safe.
Start with one product and trace it
Choose a product that has gone out of sync. Check its stock-keeping unit (SKU), variant and stock settings in WooCommerce, then find the matching record in the POS. Confirm whether the two systems are describing the same physical stock location and unit of measure.
Compare the timeline rather than just the current quantities. When was stock received? When did a till sale happen? When was an online order placed, paid, cancelled or refunded? Which system last wrote an absolute stock quantity?
A SKU mismatch can be deceptively simple. A medium blue shirt and a large blue shirt may share a parent product but have separate stock quantities. If the integration updates the parent when the POS sold one specific variation, the totals will never reconcile correctly. Bundles, weighed goods and multipacks need equally deliberate mappings.
Why copying stock totals can cause overselling
Imagine both systems initially show ten units. The POS sells two and sends an update saying eight remain. At nearly the same time, WooCommerce sells three, bringing its own count to seven. A late message from the POS then overwrites the online count with eight. The store has effectively forgotten the three-unit online sale.
The opposite can also happen: WooCommerce sends a stale quantity back to the POS and restores stock that has already been sold at the till. The problem is the meaning of the message. “Set stock to eight” is an absolute snapshot. “Two units were sold at till 3” is a movement. Those operations are not interchangeable.
A two-way integration that freely overwrites quantities in both directions needs a conflict policy. Without one, the newest arrival at the API wins even when it represents an older business event.
Choose the source of truth
For a small retailer, the POS or an inventory system often makes sense as the stock authority because it also records goods received, physical counts and counter sales. For another business, a warehouse management system may be better. The important decision is that inventory ownership is explicit.
WooCommerce can still manage its checkout and order states. The stock authority, however, must receive online sales and reservations quickly enough to calculate what is genuinely available to sell. If the checkout must prevent overselling in real time, a delayed batch sync alone may not be sufficient.
Where several branches hold different quantities, decide whether online customers can buy from one location, multiple locations or a central warehouse. Never combine branch counts into one online stock figure without also defining how an online order will be fulfilled.
Understand reservations versus completed sales
WooCommerce supports managed inventory and settings for holding stock while eligible unpaid orders are pending. Depending on the checkout flow and order status, stock may be reserved, reduced or restored. A POS connector must understand those transitions rather than interpreting every new order as a completed sale.
For example, a customer adds the last item to checkout and begins payment. Another customer tries to buy it at the till. If your systems have no shared reservation process, both can believe the unit is available.
There is no universal reservation rule that suits every retailer. You need to decide when stock becomes unavailable, how long a pending order holds it and what happens when a payment fails. Test the actual WooCommerce version and payment gateway in use. In WooCommerce 11.0, a failed order that previously reduced stock can restore it automatically; extensions using unusual order-status rules should account for that behaviour.
Build an event record instead of guessing
A dependable integration keeps a durable record of stock-affecting events. Each event should identify the source system, product or variation, location, quantity change, transaction reference and time. The integration processes the event once, then records whether the other system has acknowledged it.
Consider a POS till that temporarily loses connectivity. It may queue three sales locally and upload them later. An event-based approach can replay those sales in order and reconcile the final balance. A naive snapshot upload may overwrite stock changes that happened online while the till was offline.
Where the POS only supports full inventory snapshots, the integration needs a version number, timestamp or another reliable conflict check. Older snapshots should not silently replace newer accepted inventory state. If that cannot be guaranteed, flag the product for reconciliation rather than pretending the figures are accurate.
Make retries safe
Webhooks can be delivered more than once, and scheduled jobs can restart after timeouts. If a sale of two units is applied twice, the result is as wrong as missing the sale entirely.
Assign a unique identifier to each stock movement and store it in an integration table with a uniqueness constraint. When an event arrives again, recognise that it has already been processed. If two workers receive it simultaneously, the database should prevent both from applying the same movement.
A timeout is not proof that an update failed. Before retrying an uncertain operation, determine whether the destination accepted it. Use an API-supported idempotency mechanism where available, or reconcile against stored transaction references. Keeping an audit log makes these cases manageable.
Put safety limits around the sync
Not every mismatch should be corrected automatically. If a product suddenly changes from twelve units to negative forty, stop and investigate. A useful monitoring screen shows the last successful sync, queued events, repeated failures, unmatched SKUs and differences between counted and expected stock.
Set alerts for stale synchronisation, but avoid sending the same alert on every retry. Staff should be able to pause a problematic product, reconcile the physical count and restart safely without deleting the transaction history.
For high-risk products, you may also choose a modest safety stock buffer. That limits what WooCommerce offers online, but it is a business safeguard, not a substitute for correct stock accounting.
How to test before going live
Use a test product and simulate a till sale and an online purchase at nearly the same moment. Repeat with a delayed POS message, two copies of the same webhook, a temporary network outage and a cancelled online order. Test variations, backorders and refunds as separate scenarios.
The result should be explainable from the recorded movements. If the count is wrong, the integration should show which transaction was missed, repeated or rejected. That visibility is more useful than a dashboard that simply displays two different totals.
When a custom integration is justified
An off-the-shelf connector may be enough when a shop has one location, standard products and straightforward order handling. Custom development becomes worthwhile when you have multiple branches, offline tills, product bundles, specialised stock rules or an existing POS that exposes only a limited API.
Digital4Front develops WooCommerce integrations and custom business systems for South African companies. If stock keeps changing unexpectedly between your website and tills, we can review how each system records sales, reservations and adjustments, then design a synchronisation process that is traceable and safe to retry. The aim is not simply faster updates; it is inventory figures your staff can trust.
