Initial assessment without passwords Quote before intervention One accountable specialist from start to finish

WooCommerce Critical

ERP and WooCommerce show different stock: races, reservations and source of truth

Direct answer: ERP and WooCommerce show different stock: races, reservations and source of truth must be resolved as an operational decision, not a…

When ERP and WooCommerce show different stock, first decide which number each system is supposed to own. Physical on-hand, available-to-promise, reserved and web-sellable stock are not necessarily the same field; synchronising the wrong concept faster only spreads the inconsistency.

Define the stock contract

Write the formula WooCommerce should display: for example on-hand minus ERP reservations minus safety stock, or an explicitly exported web-available field.

Give every update an identity

Use SKU/product ID, source timestamp/version and a sync/run ID so an older message cannot silently overwrite a newer stock state.

Handle checkout reservations

WooCommerce can hold stock while payment is pending. Decide whether that reservation is also sent to ERP and how abandoned holds expire.

Make updates idempotent

Replaying the same ERP message must not subtract stock twice. Prefer setting a versioned absolute value when the integration contract allows it.

Detect races

Order creation, cancellation, refund and ERP batch import can arrive in different order. Reject or quarantine stale versions instead of accepting last-write-wins blindly.

Reconcile with a sample

Compare ERP source, integration payload, WooCommerce product/variation and active reservations for a controlled SKU set.

Compare the WooCommerce side with order stock reduction and preserve order history with the order-data guide.

Run a three-point stock reconciliation

For each sampled SKU, record the ERP authoritative value, the exact integration message/version and the WooCommerce value plus active reservations at the same time. Do this before and after one controlled order. If the middle message is already wrong, fix mapping; if it is right and WooCommerce diverges, inspect application/update logic.

BEFORE YOU SEND THE REQUEST

Frequently asked questions.

Do you ask for passwords in the form?+

No. The public form never requests access. Secure credentials are requested only after the scope and quote are approved.

Who reviews the incident?+

The request goes to Jordi Ensenyat, founder of Code Barcelona and a WordPress specialist with more than 15 years of experience.

Is anything changed before the quote?+

No. Visible symptoms and scope are reviewed first. Intervention begins after approval and with a rollback path prepared.

Do you work internationally?+

Yes. WP Repair handles WordPress and WooCommerce incidents in English and Spanish through a remote service.

Assess my incident↗