# Connect a shop through the SmartFACT plugin

Download the plugin from Data, connect the shop from WordPress, approve it in Data and check the connection. Nothing is typed, copied or set in the shop's files.

Source: https://help.smartfact.ai/manuals/configsheets/connect-plugin-shop

Review edition: 1 December 2026

Roles: owner

A shop on WordPress connects to SmartFACT from inside WordPress. You approve it in SmartFACT Data, and nothing is typed, copied or set in the shop's files. The SmartFACT Data plugin then shows each booked despatch on the shop's order, makes the shop's four order webhooks, and gives Data the orders the shop takes through its own forms, such as sample requests.

## Before you start

You need to be an Owner of the Data site with a second factor, and a WordPress administrator of the shop, in the same browser: the approval returns to the WordPress session that asked for it. The shop must use HTTPS.

Make the shop's connection in Data first, under **Settings › Shop connections › Connect a shop**:

- for its WooCommerce orders, with **Connect with WooCommerce**, and set its **despatch prefix**;
- for orders taken through its own forms, **Order integration (SmartFACT plugin)**, with the shop's address followed by `/wp-json/`, an order prefix and a polling interval.

A shop can have both. A configuration plan can make them for you; it then lists connecting the plugin as your step.

The shop's WordPress scheduled jobs must run. Where `DISABLE_WP_CRON` is set, or the shop has few visitors, a server cron must start them: one that runs `wp cron event run --due-now` every minute, or loads `wp-cron.php`. The plugin's **Status** screen shows whether they run.

## 1. Install the plugin

1. In Data, open **Settings › Shop connections**, then **Get the shop plugin**, and download it. Use this download and no other: on your organisation's own SmartFACT it carries the certificate that tells the plugin where to connect.
2. In the shop's WordPress, open **Plugins › Add New Plugin › Upload Plugin**, choose the ZIP, install it and activate **SmartFACT Data**.
3. Make sure no page cache, Cloudflare rule, firewall or security plugin answers for `/wp-json/smartfact-data/` in the plugin's place, and that Data's address can reach it.

## 2. Connect it

1. In WordPress, open **WooCommerce › SmartFACT**. The screen says what it connects to: **SmartFACT at https://data.smartfact.ai**, or your organisation's own address and **certified for** its name. If it names anything else, stop and download the plugin again from your own Data.
2. Choose **Connect to SmartFACT** and sign in if you are asked.
3. Data shows the shop, the organisation and site, the shop connections it will use, the order prefix and each permission. Choose **Approve this shop**, with a code if Data asks for one. You return to WordPress, which says **connected**.

The plugin's Connection tab and the connection's **Shop plugin** panel in Data show the same connection ID and key ID.

## 3. Choose the order forms

Only for a shop that takes orders through its own forms. In WordPress, open **WooCommerce › SmartFACT › Settings**, tick the Contact Form 7 forms that take orders, and name the form fields that make each part of the recipient where they differ from the names shown.

## 4. Check it in Data

Open the connection in Data and choose its Check. For a WooCommerce shop, then change one order's status in the shop and press **Update**, so the shop sends its first signed webhook: a private note sends none.

Then activate a reviewed SKU mapping and start the connection, as for any shop connection.

## When something is refused

- **This site has no connection for this shop yet**: make it first (above), then choose Connect again in WordPress.
- **Set the despatch prefix**: the WooCommerce connection has none. Set it under **Products**, then connect again.
- **A SmartFACT installation without a valid certificate**: the plugin's file is damaged or is not from your Data. Download it again and upload it over this one.
- **This installation's address is not certified by SmartFACT yet**: Data has no certificate, so it serves no plugin. Whoever runs your SmartFACT installation finishes it.
- **Connection setup is currently unavailable**: the shop could not reach Data, or Data could not reach the shop. Check that a firewall or security plugin lets both through, and that your installation's outbound sends are switched on.
- **The WordPress secret keys**: this site keeps them in its database. Whoever runs the site puts `AUTH_KEY`, `SECURE_AUTH_KEY`, `AUTH_SALT` and `SECURE_AUTH_SALT` in `wp-config.php`, as WordPress does when it is installed. They are WordPress's own, not SmartFACT's.

## Updates

A connected shop is offered each new release under **Plugins** in WordPress, from the Data it is connected to. Nothing is installed until an administrator chooses to. After updating, choose **Recheck after updating** on the connection's **SmartFACT plugin** panel.

## Disconnecting, or moving the shop

Choose **Disconnect from SmartFACT** in WordPress, or **Disconnect the shop plugin** on the connection in Data. Orders and history stay in WordPress. The Read key approved in WooCommerce is separate: revoke it under **WooCommerce › Settings › Advanced › REST API**. To connect the shop to another SmartFACT, disconnect it, upload that SmartFACT's own download over the plugin, and connect again.
