Developers
Guides

CMS plugins: principles

Plugins provided, sync directions, source of truth, conflicts — and what comes next.

The CMS plugins connect an existing store to QuoShop without writing code: install, paste a QuoShop key, choose what syncs. They all rely on the public API described here, and share the same PHP library (client, sync, webhook verification, idempotency).

Plugins provided

CMSPluginRequiresTested onPage
WordPress + WooCommerceQuoShop for WooCommerceWordPress 6.3, WooCommerce 8.0, PHP 7.4WordPress 7.1, WooCommerce 11.1, PHP 8.3 — HPOS and legacy order storageInstall
PrestaShopQuoShop for PrestaShop (module quoshop)PrestaShop 8.0, PHP 7.4PrestaShop 9.2, PHP 8.3Install

Both plugins are tested end to end against the real QuoShop API, in a real WordPress and a real PrestaShop: catalogue imported, order sent and its ERP invoice checked, replays without duplicates, signed webhooks applied, key revoked then replaced.

What goes which way

Texte
                      QuoShop / QuoSuite ERP                    CMS (WooCommerce, PrestaShop)
                      ──────────────────────                    ─────────────────────────────
 published products   title, descriptions, images, SKU, ─────►  created / updated
                      price (promotions), categories
 sellable stock       absolute, computed by the ERP    ─────►  replaced (minus sales not sent yet)
 withdrawals          unpublished, archived            ─────►  draft / deactivated (never deleted)
 orders               ERP invoice for the full amount  ◄─────  sent once paid (or at the chosen state)
 steps                shipped / delivered / cancelled  ◄────►  both ways, without ping-pong
 payments             matched against the invoice      ◄─────  cash on delivery, transfer received

The source of truth

  • Products, prices, stock: QuoShop / the ERP. The fields it sends (title, descriptions, reference, price, stock, images, QuoShop categories) are overwritten at each sync. Edit them in QuoSuite. Everything else belongs to the CMS and is never touched: tags, cross-sells, custom fields, your own categories, shipping class, reviews.
  • The checkout: the CMS. It charges the customer, applies its shipping fees, sends its emails. QuoShop receives the order, prices it from its catalogue and invoices it.

Conflicts, and how they are settled

SituationResolution
A field managed by QuoShop is edited in the CMSthe next sync overwrites it — the product screen says so
A CMS product has the same reference (SKU) as a QuoShop productit is linked instead of duplicated (“link by SKU” setting)
Two updates arrive out of orderthe most recent wins: each product, stock figure and order keeps the version applied (updatedAt, asOf)
The CMS sold units not sent yetthey are subtracted from QuoShop’s stock until sent: no overselling
CMS total ≠ QuoShop total (coupon, fees, VAT rate)the order is refused (409), flagged on the order; nothing is invoiced at another amount
The order is edited in the CMS after being sentthe first request’s body is replayed as is; step and payment changes go through their own calls
The same order is sent twiceQuoShop recognises it (source + externalId): never two orders, never two invoices
A shipped order is cancelled in the CMSrefused by QuoShop, flagged: return and credit note are handled in QuoSuite
A change made in QuoShop (shipping, cancellation)applied to the CMS without being sent back to QuoShop

Security

  • QuoShop key only — never a QuoSuite user’s credentials. A key without domains (server-to-server): useless from a browser if it leaked.
  • Key and webhook secret encrypted at rest, never shown again (only the public prefix qsh_…_•••• is), masked in logs.
  • A key is tested before being saved; revoked or expired, the plugin pauses with a clear message and keeps orders queued.
  • Every webhook is verified (HMAC-SHA256, 5-minute window, constant-time comparison), recorded once (unique index), processed after the answer.
  • The key’s perimeter bounds what the CMS receives: never a cost, an ERP customer, an internal note.

Next

PlatformStatusWhat it would take
Shopifynot provideda Shopify app (OAuth, GraphQL Admin API, Shopify webhooks) hosted by QuoSuite — a service, not an installable plugin; the PHP library’s sync logic carries over
Magento / Adobe Commercenot provideda Magento 2 module on the same PHP library (Composer)
OpenCart, Drupal Commercenot providedsame, on demand
Custom websitepossible todaythe API, the guides above, and the PHP library (quoshop-php-sdk) or the reference’s Node.js / Python examples

WooCommerce and PrestaShop came first: they are the two most widespread self-hosted e-commerce CMSs among French-speaking merchants, both in PHP — which lets them share one tested client library.