> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cloudify.biz/llms.txt
> Use this file to discover all available pages before exploring further.

# Product Sync Rules 

> Configure how Shopify products are matched, created, and mapped to Xero items.

The Product tab controls how Shopify products are found and synced to Xero items. There are four sections: **Sync Rules**, **If Product Not Found**, **Tax Settings**, and **Field Mappings**.

***

## Sync Rules

### Choose a product search method

When a Shopify order comes in, the integration needs to find the matching product in Xero. You have two options:

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/GMd1aw2fJDn9fjpg/images/Screenshot-2026-08-14-011642.jpeg?fit=max&auto=format&n=GMd1aw2fJDn9fjpg&q=85&s=b05299d5dff01944591eb879e53dc727" alt="Screenshot 2026 08 14 011642" width="742" height="403" data-path="images/Screenshot-2026-08-14-011642.jpeg" />
</Frame>

<CardGroup cols={2}>
  <Card title="Simple Search" icon="magnifying-glass">
    Automatically match products using specific fields. Select a Shopify field and a corresponding Xero field to match against.

    Similar fields work best — for example, matching **SKU** to **Product Number**. If you don't use SKUs in Shopify, try matching using **Product Name** fields instead.
  </Card>

  <Card title="Direct Link (no searching)" icon="link">
    Manually link each Shopify product to a specific Xero item. Best for smaller product catalogs where you want precise control over every mapping.
  </Card>
</CardGroup>

If using Simple Search, configure your matching fields:

| Shopify Field | Xero Field |
| ------------- | ---------- |
| Title         | Name       |

<Info>
  **Why it matters:** This step is crucial for accurate invoicing and inventory management. If the product is not found, one of the fallback options below is applied — where **"Skip invoice generation"** is selected by default.
</Info>

***

## If Product Not Found in Xero

When the integration can't find a matching Xero item, choose what should happen:

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/GMd1aw2fJDn9fjpg/images/Screenshot-2026-08-14-011719.jpeg?fit=max&auto=format&n=GMd1aw2fJDn9fjpg&q=85&s=22e16a4fe7d3b21a545df1e861baed6f" alt="Screenshot 2026 08 14 011719" width="730" height="271" data-path="images/Screenshot-2026-08-14-011719.jpeg" />
</Frame>

| Option                           | What It Does                                                                                                                           |
| -------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------- |
| **Skip invoice generation**      | The invoice is not created in Xero. This is the default.                                                                               |
| **Use a default product**        | Falls back to a specific Xero item you designate as the default.                                                                       |
| **Create a new product in Xero** | Automatically creates the product as a new item in Xero and assigns it to your chosen Sales Account (e.g. `CF-20000 — Shopify Sales`). |

<Warning>
  If you choose "Create a new product in Xero", be aware this may create duplicate or unnecessary products if not managed carefully. Review your Xero items periodically.
</Warning>

***

## Tax Settings

<Check>
  **Exclude Shopify Tax from Xero invoices**
</Check>

Enable this to remove taxes applied on Shopify orders when creating the Xero invoice. Only the relevant Xero tax rates will be applied instead.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/GMd1aw2fJDn9fjpg/images/Screenshot-2026-08-14-011803.jpeg?fit=max&auto=format&n=GMd1aw2fJDn9fjpg&q=85&s=bf23bf95380017ef78cb1c22485e5410" alt="Screenshot 2026 08 14 011803" width="774" height="120" data-path="images/Screenshot-2026-08-14-011803.jpeg" />
</Frame>

Cloudify does **not** perform any tax calculations — it depends on your existing tax settings in Xero. Use this when your Xero tax setup should take precedence over Shopify's tax values.

***

## Field Mappings

### How should product data fields be mapped?

This section defines how product information transfers from Shopify to Xero when creating new items.

<Frame>
  <img src="https://mintcdn.com/cloudify-c7720744/GMd1aw2fJDn9fjpg/images/Screenshot-2026-08-14-011829.jpeg?fit=max&auto=format&n=GMd1aw2fJDn9fjpg&q=85&s=47b3c9ed59efabb06fb4882004b5d12c" alt="Screenshot 2026 08 14 011829" width="733" height="673" data-path="images/Screenshot-2026-08-14-011829.jpeg" />
</Frame>

<Info>
  **Note:** This section is only applicable if you've chosen **"Create a new product in Xero"** as your fallback option above. The integration fetches details from the Shopify fields and syncs them to the corresponding Xero field.
</Info>

Common fields are **pre-mapped** by default:

| Xero Field          | Shopify Field | Status |
| ------------------- | ------------- | ------ |
| **Name** (Required) | Title         | Mapped |
| **Code** (Required) | SKU           | Mapped |
| **Description**     | Description   | Mapped |
| **Sales price**     | Price         | Mapped |

To update a mapping, click the field box and select a different Shopify field. Use **"Clear"** to remove a mapping, or **"Create new Shopify field"** if your store uses custom data that doesn't map to a standard field.

Click **Save** when you're done.
