Dolibarr and BigCommerce inventory syncDolibarr and BigCommerce: stock that stays in sync

An earlier integration compared two stock numbers with no record of which system had changed. It could double stock, subtract a sale twice, stall when an order was validated, and alter product listings.

Talk about a similar project
Client
A retailer that lists its products on BigCommerce and processes orders offline in the Dolibarr ERP.
Status
Live
Built with
Dolibarr module (PHP), BigCommerce Inventory API
Platforms
  • Dolibarr
  • BigCommerce
What we built

How it works,
step by step.

We wrote a custom Dolibarr module that keeps the two systems in step.

  1. It records the last quantity both systems agreed on for each product, so it can tell which side changed.

  2. A stock change in Dolibarr reaches BigCommerce within about two minutes.

  3. A quantity edited in BigCommerce is picked up within five minutes and recorded in Dolibarr as a stock movement.

  4. If both sides changed, nothing is overwritten. The product is flagged for a person to resolve.

  5. It uses a BigCommerce key limited to inventory, so it cannot touch titles, descriptions, images or URLs.

  6. A read-only report compares both systems product by product, and was used to fix mismatches before any writing was switched on.

The thinking behind it

Two systems that both hold a stock number will disagree sooner or later. The fix was to remember the last quantity they agreed on, so the module can tell which side moved and never has to guess.

Where it stands

Live and in use.

The client is not named. No performance figures are published for this project.

Go deeper

We wrote up the planning questions behind this kind of project as a field guide.

Read our inventory sync planning guide ↗
Start here

Have a similar problem?

Tell us which systems are involved and where they disagree. Book a free 30-minute call.

Book a free 30-minute callWe reply within one business day. No pitch deck required.