How does the integration work?

Created by Migration Bot, Modified on Fri, 23 Oct at 11:32 AM by Migration Bot

Originally written by Robbie Lewis, last updated Dec 27, 2022, on the Swan Retail knowledge base (SRS).

Part of: Swan eCommerce for SRS


The Swan Retail WooCommerce SRS plugin is a standard WordPress plugin, built using best practises for use with PHP 7+ and WooCommerce 3.0+.

The plugin acts like middleware, downloading product data from SRS and uploading it into the WooCommerce REST API for use on the website. The plugin also implements it’s own API which is used by SRS to securely aquire order and customer data from the website.

Product data, stock & pricing are transferred to the website from SRS

The plugin uses cron tasks to connect to SRS regularly and synchronise product and stock data in real time. Stock and pricing are synchronised very frequently every minute, whilst product data is synchronised every 5 minutes. The intervals can be changed by setting the frequency of the cron job.

Examples of product data

Examples of stock & price data

  • Product name

  • Images

  • Attributes

  • Categories

  • Stock level

  • Stock status

  • Normal price

  • Sale price

Order & customer data are transferred to SRS from the website

The plugin implements a REST API which is used by SRS to poll for new orders. This is done using a scheduled task on the Windows Server where the SRS web service is running. Typically the scheduled task is set to run every 15 minutes.

Examples of customer data

Examples of order data

  • Customer name

  • Email address

  • Billing address

  • Delivery address

  • Order number

  • Line items

  • Discounts applied

  • Payment method used

You can monitor and control the synchronisaton of data on the Dashboard in your website CMS.

The plugin adds new functionality to WooCommerce

There are concepts in SRS which are not natively supported by WooCommerce, such as nested options. The plugin implements nested options and many other SRS features by extending WooCommerce functionality.

Functionality added to WooCommerce by the plugin:

  • Nested options (features & option sets)

  • Pay for quote online

  • Click & Collect

  • Partial order dispatch

  • Per-product shipping (delivery methods)

  • In stock & out of stock messages

  • Up sells & cross sells (using linked item groups)

  • Info only products (cannot purchase)

  • GDPR marketing consent collection

  • Catalog products by brand

Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article