Projects

WooCommerce ↔ Dolibarr connector

WooCommerce ↔ Dolibarr connector

WordPress plugin: customers and products kept in sync, Dolibarr quotes created from WooCommerce orders, quote status updated in return.

01

Problem

A WooCommerce store and a Dolibarr ERP that don’t talk to each other: every customer, product and order is re-entered from one tool to the other, with the time lost and the errors that come with it. This connector is a personal project, designed to be installed for clients.

02

Constraints

  • Go through Dolibarr’s REST API (version 16 or later), without modifying Dolibarr.
  • Never create duplicates: a customer is matched by email address, a product by its reference (SKU).
  • Respect the store’s price settings (excluding or including tax).

03

Successive versions

V1

WordPress plugin

  • Customers: a third party is created in Dolibarr when a WooCommerce customer registers (guests included) and updated when their profile changes.
  • Products: created and updated in Dolibarr every time they are saved in WooCommerce, telling physical products and services apart.
  • Quotes: a Dolibarr quote is created from an order, manually, in bulk or automatically at a chosen status, with lines, VAT, discounts, shipping costs and coupons.
  • Feedback: when the quote status changes in Dolibarr (validated, signed, refused), WooCommerce is notified (webhook protected by a shared secret).
  • Monitoring: periodic sync, a sync log and a dashboard in the admin.

Version 1 is finished and tested locally; it has not yet been installed for a client.

04

Support

For a client, the project would follow the same path as my automations: an audit, a demo that models their need, then installation, team training and documentation.

05

Limits

  • Invoices are not generated: only quotes.
  • Stock quantities are not synced: only a product’s “in stock” state is sent.
  • Periodic sync relies on the WordPress scheduler, which depends on site visits.

06

Lesson

A plugin installs quickly, but every new need calls for development: the right architecture depends on what will change most often for the client.

Book a free 30-minute call

Free · No commitment · Google Meet video call

Calendar not showing? Open it in a new tab