Developers
Guides

PrestaShop

Install the QuoShop module for PrestaShop, connect it with a key, schedule the cron.

The QuoShop Connector module connects a PrestaShop store to QuoShop, on the same principles as the WooCommerce plugin: catalogue, prices and stock from the ERP; orders sent to QuoShop, which issues the ERP invoice for the full amount; signed webhooks.

ModuleQuoShop Connector (quoshop)
RequiresPrestaShop 8.0, PHP 7.4 (curl extension)
Tested onPrestaShop 9.2, PHP 8.3
LanguagesEnglish, French
LicenceAFL-3.0 (bundled QuoShop library: MIT)

1. Create the QuoShop key

As for WooCommerce: Settings › API & Integrations › QuoShop keys (store) › New key, rights Custom → catalog:read, inventory:read, orders:write, webhooks:write (+ customers:write if the store refuses guest orders), allowed domains empty. Copy the qsh_… key.

2. Install the module

Get the archive from the box at the top of this page. When the module is also listed on PrestaShop Addons, you can instead install it from there and receive its updates.

Modules › Module Manager › Upload a module, drop quoshop-prestashop-1.1.0.zip. The module creates its tables (quoshop_*) and subscribes to PrestaShop’s order events. Then Configure.

3. Connect

  1. QuoShop key: paste the key, then Connect. Nothing else to type: the module talks to QuoSuite’s public API, and the key tells it which workspace. The key is tested before being saved, then encrypted with your PrestaShop’s encryption key (PhpEncryption), never shown again.
  2. Store: choose the store this shop sells for, in the list of your workspace’s stores (chosen automatically when there is only one). The catalogue import is queued.
  3. On the Overview tab: Sync now for the first import, then Register the endpoint (webhooks).

The key can also be a constant (define('QUOSHOP_API_KEY', 'qsh_…'); in config/defines_custom.inc.php).

4. Schedule the cron

PrestaShop has no job queue: the module handles on the spot what it can (an order goes out when it is validated, a stock event is applied as soon as it arrives), and a cron address does the rest — orders to retry, product events, catalogue syncs, the daily stock pass:

Shell
*/5 * * * * curl -fsS "https://shop.example.com/module/quoshop/cron?token=…" > /dev/null

The exact address, with its token, is shown in the Cron card of the Overview tab, which also says when the cron last called it — Not set up or Late means nothing runs in the background. PrestaShop’s “Cron tasks manager” module works too.

The Settings tab sets the catalogue cycle (hourly by default — the safety net of the webhooks) and the stock cycle (daily by default), each from every 15 minutes to daily; the cron runs them when due.

The Overview tab also shows the catalogue (pass in progress, last and next pass, failures, Full resync that rewrites every product), the orders (sent, waiting, to check, with the latest refused ones and their reason) and the webhooks (last event received).

What happens

  • Products: name, descriptions and SEO in every shop language QuoShop has a translation for; reference, EAN-13; price from QuoShop’s price incl. tax: PrestaShop stores prices without tax, so the price excl. tax is derived from it with 6 decimals, with the tax rule whose rate for your country is QuoShop’s — the price incl. tax shown, and the order total, are the ones QuoShop invoices; promotion = reference price + a specific price of the module (an amount off the price incl. tax); stock (minus sales not sent yet); article not tracked in stock = always orderable; images (thumbnails and WebP/AVIF formats generated by PrestaShop); categories (one per collection, under Home). Withdrawn product: deactivated, never deleted.
  • Orders: sent when they reach a “paid” or “shipped” state (or the states you choose). A private order note gives the QuoShop number and the ERP invoice; the order page’s QuoShop block shows the sending state, with Send to QuoShop now.
  • States: Shipped → SHIPPED, Delivered → DELIVERED, Canceled / Refunded → CANCELLED; a payment recorded later is sent and matched. A shipment decided in QuoSuite moves the PrestaShop order to Shipped (with PrestaShop’s usual email), without being sent back to QuoShop.

When something goes wrong

The causes and fixes are those of WooCommerce: revoked or expired key (the module pauses, orders wait for the new key), insufficient stock, different total (voucher, fees), product without a reference. Log: Advanced Parameters › Logs, object type QuoShop.

Uninstalling

Uninstalling deletes the endpoint on QuoShop, the configuration (key included), the order and event queues. Products, categories and orders stay; so do their QuoShop links (a reinstall finds them again), unless Also delete the QuoShop links is ticked.