Developers
Guides

WordPress / WooCommerce

Install QuoShop for WooCommerce, connect it with a key, set up the sync.

WordPress plugin

QuoShop for WooCommercev1.2.0

  • WordPress 6.3+
  • WooCommerce 8.0 – 11.1
  • PHP 7.4+
  • HPOS

SHA-256384811cd60c567da2b33e77fbaa68919b7220e587a3a2183f08096e35578b3e5

QuoShop for WooCommerce connects a WordPress + WooCommerce store to QuoShop: catalogue, prices and stock come from the ERP; orders go to QuoShop, which issues the ERP invoice for the full amount; signed webhooks keep everything up to date.

PluginQuoShop for WooCommerce
RequiresWordPress 6.3, WooCommerce 8.0, PHP 7.4 (extensions json, hash, sodium — or WordPress’s polyfill)
Tested onWordPress 7.1, WooCommerce 11.1, PHP 8.3; HPOS and legacy order storage
LanguagesEnglish, French
LicenceGPL-2.0-or-later

1. Create the QuoShop key

In QuoSuite, Settings › API & Integrations › QuoShop keys (store) › New key:

  • Name: “WooCommerce — shop.example.com”;
  • Rights: Custom → catalog:read, inventory:read, orders:write, webhooks:write (plus customers:write if your store refuses guest orders);
  • Allowed domains: empty — the plugin calls the API from the server, never from the browser.

Copy the qsh_… key: it will not be shown again.

2. Install the plugin

Get the archive from the box at the top of this page. When the plugin is also listed on WordPress.org, you can instead install it from Plugins › Add New and receive its updates there.

  1. Plugins › Add New › Upload Plugin, choose quoshop-for-woocommerce-1.1.0.zip, Install Now, then Activate.
  2. A new menu appears: WooCommerce › QuoShop.

The archive carries its own copy of the QuoShop library: nothing else to install, no Composer on the hosting.

3. Connect

In WooCommerce › QuoShop:

  1. QuoShop key: paste the key, then Connect. Nothing else to type: the plugin talks to QuoSuite’s public API, and the key tells it which workspace.
  2. Store: choose the store this site sells for, in the list of your workspace’s stores (chosen automatically when there is only one). The catalogue import starts at once.

The key is tested before being saved (GET /ping): a refused key never replaces the working one. Once accepted, it is encrypted (libsodium, with the security keys from wp-config.php) and never shown again — only its public prefix is. The screen points out the scopes the enabled features are missing.

4. Declare the webhooks

On the Overview tab, Register the endpoint button: the plugin declares https://<your-site>/wp-json/quoshop/v1/webhook to QuoShop, for the events the enabled features need, and keeps the signing secret (encrypted). Send a test event checks the round trip.

Without the webhooks:write scope, an administrator can declare that address in QuoSuite › Settings › API & Integrations › Webhooks and paste the secret in the Secret (manual setup) field.

5. First import and follow-up

The import starts as soon as the store is chosen: the collections (as product categories), then the published products, page by page in the background (WooCommerce’s Action Scheduler — Tools › Scheduled Actions, group quoshop). The Overview tab follows it live — products processed, created, updated, failures — and shows, at a glance:

  • Connection: store, workspace, key, last check, missing scopes, currency mismatch;
  • Catalogue: last and next pass, failures with their reason, last stock refresh, how prices are written; Sync now, Full resync (every product rewritten), Stop the pass;
  • Orders: sent, in progress, waiting, to check — with the latest refused orders and their reason;
  • Webhooks: last event received, events processed or failed over 30 days;
  • Background jobs: catalogue and stock cycles, next runs, and a warning when WP-Cron does not run.

For a very large catalogue, the WP-CLI command does it in the foreground:

Shell
wp quoshop sync --full
wp quoshop status

Settings

SectionSettingDefault
Catalogueproducts, descriptions, images, categories, stockall enabled
link existing products by SKUyes
catalogue cycle (safety net of the webhooks)hourly — from every 15 minutes to daily
stock cycledaily — from every 15 minutes to daily
product withdrawn in QuoShopdraft
Orderssend to QuoShop when the order becomesProcessing, Completed (add On hold to send bank transfers before receipt)
post to the ERP immediatelyyes
refuse if the total differsyes (recommended)
sourcewoocommerce — one value per site if several sites sell on the same store; fixed after the first exports
Statusesa Completed order becomesSHIPPED (or DELIVERED)
apply QuoShop’s changesyes; the WooCommerce order is Completed when QuoShop ships it

What happens

  • Products: title, descriptions, reference, barcode, price incl. tax, the one QuoShop invoices (if WooCommerce adds tax to the prices entered, the price excl. tax is derived from it with 6 decimals so the total stays the same; promotion = strike-through price + sale price), stock (minus sales not sent yet), images (imported once into the media library), QuoShop categories. The rest of the product is yours; a linked product’s screen reminds what will be overwritten.
  • Orders: sent in the background, never during the customer’s payment. The first request’s body is kept and replayed identically; an idempotency key goes with it. The order’s QuoShop box shows the sending state, the QuoShop number, the ERP invoice and the last error, with Send to QuoShop now. Order notes tell each step.
  • Statuses: Completed → shipped in QuoShop; Cancelled / Refunded → cancelled (if nothing has left); a collected cash-on-delivery payment is recorded and matched against the invoice. Changes coming from QuoShop are not sent back to QuoShop.

When something goes wrong

MessageCauseFix
The QuoShop key was revoked / has expired (red notice)key revoked or expired in QuoSuitecreate or rotate the key, paste it: waiting orders go out at once
Not sent to QuoShop: insufficient stock…the ERP lacks the stockrestock, then Send to QuoShop now
… QuoShop cannot reproduce its totalcoupon, fees, or WooCommerce tax rates different from the ERP’salign taxes, avoid discounts QuoShop does not handle, or knowingly disable the total check
Background jobs: lateWP-Cron does not run (site without visits, DISABLE_WP_CRON)call wp-cron.php from a system cron every few minutes
… neither a QuoShop product nor has a SKUproduct created in WooCommerce without a referencegive it the SKU of the ERP article
Sent…, not posted to the ERP yetthe order exists in QuoShop but the document could not be issuednothing to do: the plugin sends the order again, and the replay completes the posting

Log: WooCommerce › Status › Logs, source quoshop (keys and secrets masked).

Uninstalling

Deactivating stops the scheduled jobs and keeps everything else. Deleting the plugin erases its settings, the key, the event log, the scheduled jobs, and deletes the endpoint on QuoShop. Products and orders stay; so do their QuoShop links, unless Also delete the QuoShop links is ticked (or define( 'QUOSHOP_REMOVE_ALL_DATA', true );).