How does the integration work?

Created by Migration Bot, Modified on Mon, 7 Sep at 2:44 PM by Migration Bot

Originally written by Robbie Lewis, last updated 24 January 2024, on the Swan Retail knowledge base (Trims Support › TRIMS WooCommerce Plugin).


The TRIMS WooCommerce plugin is a standard WordPress plugin, built using best practises for use with PHP 8+ and WooCommerce 8.2+.

The plugin acts like middleware, downloading data from TRIMS and uploading it into the WooCommerce REST API for use on the website.

trims-how-it-works.jpg

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

The plugin uses cron tasks to connect to TRIMS regularly and synchronise product and stock data in real time. Stock levels 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 data

  • Product name
  • Attributes
  • Categories
  • Pricing
  • Stock level
  • Stock status

Order & customer data are transferred to TRIMS from the website

The plugin monitors orders as they are placed into WooCommerce and automatically sends them to TRIMS when payment is completed.

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.

Attachments (1)

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