> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.omegatheme.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# ⚙️ Mapping Rules

# Mapping Rules

Mapping Rules allow you to create flexible, conditional logic between your Shopify product data and target channel attributes (such as Google, Facebook,...). These rules help you automate product categorization, structure ad campaigns, and optimize feed data without changing your store's original data.

# 🛠️ Step-by-Step Setup Guide
### Step 1: Getting Started
1. Open your feed setup configuration and navigate to the **Mapping rules** tab.
2. Click  `+Add your first rules`(if creating a rule for the first time)

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_vt8cxk.png)

* Or `Create rule` if you already have existing rules.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1wwle4t.png)
### Step 2 — Configure Rule Logic
1. Basic Information
`Rule name`**:** Enter a clear name for your rule (up to 50 characters) so you can easily recognize it in your list.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_uq3z8s.png)

2. WHEN Section — Input Condition
Set up the triggering criteria for your rule:
**Select field:** Choose the channel attribute or Shopify product field you want to evaluate (e.g., *Product title*, *Product type*).

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1048dxj.png)

**Comparison operator:** Select a matching condition (*Contains*, *Equals*, *Starts with*, *Ends with*, *Greater than*, *Less than*, or *Any in*).

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1y9455d.png)

**Enter value:** Input the keyword or value to compare against.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_he5d37.png)

 `+Add condition`**:** Add extra criteria to refine your rule using conditional logic:
* **AND:** All listed conditions must be met for the rule to apply.
* **OR:** At least one of the listed conditions must be met.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1o9aca9.png)

3. THEN Section — Output Action
Choose how the feed field should be updated when the condition in the **WHEN** section is met:
**Option A — Use value from another Shopify field:** Maps dynamic values directly from a Shopify field.
* **Send to:** Select the target channel attribute receiving the value.
* **Use:** Select the Shopify field to pull the value from

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_bimk0r.png)

**Option B — Use a custom value:** Assigns a static custom text or value to the target attribute.
* **Send to:** Select the target channel attribute receiving the value.
* **Use:** Enter the custom text/value you want to assign manually.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_xkub0e.png)

4. Rule Status & Saving
**Status Toggle:** 
    * **Active**: Enables the rule immediately for feed syncing. 
    * **Draft**: Saves the configuration without applying it to the feed.


![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_j442g1.png)

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_1vw4g57.png)

## 📋 Managing Active Rules
Once saved, all your rules appear in a summary list under the **Mapping rules** tab:
* **Rule Overview:** Displays the rule name alongside its conditional logic summary (e.g., *When Product title contains "Unisex" → Set Gender to Unisex*).
* **Status Toggle:** Quickly switch rules between **Active** and **Draft** directly from the list view.
* **Action Buttons:** Click **Edit** to modify rule conditions or **Delete** to permanently remove a rule.

|| Note: Once saved and activated, the system applies these rules immediately during the next feed sync.

![](https://storage.crisp.chat/users/helpdesk/website/-/8/3/8/3/8383e5404a31c000/image_n20atd.png)




