# Templates & Template Rules

LitCommerce is designed to optimize how you manage products across multiple platforms. The tool offers Templates & Template Rules, which streamline how you create, edit, and sync product data.

This article walks you through these features. More details can be found below.

## <mark style="color:$primary;">**Templates**</mark>

A template is a set of attributes and settings used to create or update listings on a designated sales channel. Any changes made to the template will automatically update every listing that has it assigned.

### <mark style="color:$info;">**How to create a Template?**</mark>

{% stepper %}
{% step %}
Select the `Templates & Rules` section on the sidebar menu to find all the integrated channel tabs. Each tab contains its own set of templates.

<figure><img src="/files/P6IJ2GZv5OM2kdGjorJz" alt=""><figcaption></figcaption></figure>

Alternatively, go to the target LitCommerce channel to click `More Actions` and select `Listing Templates/Rules` to view the templates and template rules.

<figure><img src="/files/lQQ52GTYLR9ununlFESz" alt=""><figcaption></figcaption></figure>

<br>
{% endstep %}

{% step %}
Click `+ Add New` beside the template you want to create, and proceed with the setup.

<figure><img src="/files/p0PuUkQRhDA8GH5Cv6mR" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}
Each template contains a unique set of product attributes, which vary depending on the sales channel. Be sure to complete all required fields, indicated by a red asterisk (\*). <br>

<figure><img src="/files/tiJSa8SnaJE5Qk4SO993" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Each template requires a Template Name, which lets you differentiate it from other templates.**
{% endhint %}

<figure><img src="/files/Tgs7K1OqUk2LRPZAueAt" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}
Once the template is completed, click `Save`. <br>

<figure><img src="/files/j5YZfRp7H5BSaNcutB6S" alt=""><figcaption></figcaption></figure>
{% endstep %}
{% endstepper %}

### <mark style="color:$info;">**Set up templates for channels**</mark>

Each channel has its own set of templates due to differences in platform requirements. For more detailed information, check out our marketplace-specific guides:

* [How to create Etsy Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/etsy/how-to-create-etsy-templates-and-template-rules)
* [How to create eBay Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/ebay/how-to-create-ebay-templates-and-template-rules)
* [How to create TikTok Shop Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/tiktok-shop/how-to-create-tiktok-shop-templates-and-template-rules)
* [How to create Amazon Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/amazon/how-to-create-amazon-templates-and-template-rules)
* [How to create Walmart Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/walmart/how-to-create-walmart-templates-and-template-rules)
* [How to create Reverb Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/reverb/how-to-create-reverb-templates-and-template-rules)
* [How to create Facebook Shop Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/facebook-shop/how-to-create-facebook-shop-templates-and-template-rules)
* [How to create Google Merchant Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/google-merchant/how-to-create-google-merchant-templates-and-template-rules)
* [How to create Shopee Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/shopee/how-to-create-shopee-templates-and-template-rules)
* [How to create Faire Templates & Template Rules](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/supported-platforms/faire/how-to-create-faire-templates-and-template-rules)

### <mark style="color:$info;">**Auto-assign templates**</mark>

Enabling the `Choose as default` toggle will automatically assign the template to every new draft listing added to the channel from All Products. Default templates will be marked with a (Default) icon.

<div><figure><img src="/files/LEMpnGZUZ3CAU8lLdJsZ" alt=""><figcaption></figcaption></figure> <figure><img src="/files/7hV4v2OUa6nQtveNEIjs" alt=""><figcaption></figcaption></figure></div>

{% hint style="success" %}
**The first time you save a template after setting it as the default, the `Also apply to Draft and Error listings` option will appear. Check the box to apply the default template to all Draft and Error listings without a template assigned.**
{% endhint %}

<figure><img src="/files/yM8vuFTZSFlmSzsGhudb" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Editing a template and save it will apply the changes to all listings using that template. LitCommerce will automatically process the new data and send it to the target platform.**
{% endhint %}

## <mark style="color:$primary;">**Template Rules**</mark>

A template rule is a set of templates for a specific channel. It can include shipping, category, and pricing templates, among others. Assign it to apply all included templates to a listing at once.

### <mark style="color:$info;">**How to create Template Rules?**</mark>

Once your templates are set up, open the Template Rules tab and click `+ Add New` to start creating your template rule.

<figure><img src="/files/CiCZuZCCkYKsNCOX9C7B" alt=""><figcaption></figcaption></figure>

A template rule consists of three main sections:

#### <mark style="color:blue;">**1- Select templates to use in this rule**</mark>

Select the templates you would like to include in the template rule. Adding all template types is optional.

<figure><img src="/files/na9DyblXgSEFow9RHGNN" alt=""><figcaption></figcaption></figure>

{% hint style="success" %}
**Click `View` to see template details.**
{% endhint %}

<figure><img src="/files/vqmPpCPFYcJo4Sd2ORgi" alt=""><figcaption></figcaption></figure>

#### <mark style="color:blue;">**2- Set conditions to auto-apply this rule (optional)**</mark>

Create different conditions so LitCommerce can automatically apply your template rule to new listings added to the channel. Refer [HERE](https://litcommerce.gitbook.io/litcommerce-helpdesk/marketplace-integration/app-features/templates-and-template-rules#auto-apply-template-rules) for more details on the process.

<figure><img src="/files/rbZc4Ud1teOvvDzFthzb" alt=""><figcaption></figcaption></figure>

#### <mark style="color:blue;">**3- Name your rule**</mark>

Each template rule requires a Rule Name, which lets you differentiate it from other template rules. Enter any name of your choice in this field.

<figure><img src="/files/QBkpFTYrZkPQ1vD8QQzp" alt=""><figcaption></figcaption></figure>

After all the necessary information is provided, click `Save` to save the template rule configuration.

{% hint style="success" %}
**Use the `Save & Apply` button to assign the template rule to all existing eligible Draft and Error listings on the channel.**
{% endhint %}

<figure><img src="/files/X5rWbkGrT6Vnq12R83Zv" alt=""><figcaption></figcaption></figure>

Template rules containing conditions will be marked with a (Auto-Apply) icon.

<figure><img src="/files/vShlDEtjgrLtETLjles9" alt=""><figcaption></figcaption></figure>

### <mark style="color:$info;">**Auto-apply template rules**</mark>

You can automatically assign template rules by configuring conditions in the “Set conditions to auto-apply this rule” section of each template rule. They apply to new listings added to the channel from All Products.

These conditions determine the criteria a listing must meet for the template rule to be applied. You can customize them based on the target sales channel and intended use.

{% hint style="info" %}
**There is no limit to the number of conditions that can be added per template rule.**
{% endhint %}

Click on the `+Add Condition` button to start creating a new rule. The structure of a condition includes:

* Logical relationship between conditions: And/Or.
* Product fields.
* Comparison condition.
* Condition matching: Any/All.
* Condition value.

<figure><img src="/files/9XbC1UPCKwBtL35LmqWp" alt=""><figcaption></figcaption></figure>

Let’s go through each condition component below.

#### <mark style="color:blue;">**Logical relationship between conditions: And/Or**</mark>

**And/Or** is applied when choosing two or more conditions:

* **And:** The condition will take effect if the product meets all criteria.
* **Or:** The condition will take effect if the product meets any criterion.

<figure><img src="/files/DybUpcnMvh8B5dg6CQLi" alt=""><figcaption></figcaption></figure>

#### <mark style="color:blue;">**Product fields**</mark>

When clicking on the second column, the system will display a product attributes list (including Main Store fields and metafields) used to evaluate conditions.

<figure><img src="/files/lRgJRRFrz4iCucWaucBo" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Product attributes vary depending on your Main Store.**
{% endhint %}

#### <mark style="color:blue;">**Comparison conditions**</mark>

Choose the suitable condition based on the selected product field. Some of the conditions include:

<table><thead><tr><th width="196.66668701171875">Condition</th><th>Definition</th></tr></thead><tbody><tr><td><strong>Equals to</strong></td><td>Checks whether the selected product field value matches the specified condition value.</td></tr><tr><td><strong>Not equal to</strong></td><td>Checks whether the selected product field value is different from the specified condition value.</td></tr><tr><td><strong>Contains</strong></td><td>Checks whether the selected product field value includes the specified condition value.</td></tr><tr><td><strong>Does not contain</strong></td><td>Checks whether the selected product field value does not include the specified condition value.</td></tr><tr><td><strong>Starts with</strong></td><td>Check whether the selected product field value starts with the condition value.</td></tr><tr><td><strong>Ends with</strong></td><td>Check whether the selected product field value ends with the condition value.</td></tr><tr><td><strong>Less than</strong></td><td>Checks whether the selected product field value is lower than the specified condition value.</td></tr><tr><td><strong>Less than or equal</strong></td><td>Checks whether the selected product field value is lower than or the same as the specified condition value.</td></tr><tr><td><strong>Greater than</strong></td><td>Checks whether the selected product field value is higher than the specified condition value.</td></tr><tr><td><strong>Greater than or equal</strong></td><td>Checks whether the selected product field value is higher than or the same as the specified condition value.</td></tr><tr><td><strong>Is available</strong></td><td>Checks whether the selected product field contains a value.</td></tr><tr><td><strong>Is not available</strong></td><td>Checks whether the selected product field does not contain a value.</td></tr></tbody></table>

<figure><img src="/files/5dWJfZWx2vZ6bQd3hrww" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
**Condition types vary by field. The system only shows condition options that are compatible with the field’s data type.**
{% endhint %}

#### <mark style="color:blue;">**Condition matching: Any/All**</mark>

Several conditions come with their own set of specifications: **Any/All**. These specifications determine how the condition values are evaluated for the condition to apply:

* **Any:** The condition will take effect if the product data meets any value entered.
* **All:** The condition will take effect if the product data meets all the values entered.

<figure><img src="/files/k53yl95UAHMtuHbFhWrq" alt=""><figcaption></figcaption></figure>

#### <mark style="color:blue;">**Condition value**</mark>

Enter or select suitable values in this box to complete the condition logic. LitCommerce will use these values to check your product data against.

<figure><img src="/files/kSAjwKpWHyTkVRmgpoMJ" alt=""><figcaption></figcaption></figure>

## <mark style="color:$primary;">**How to manage Templates and Template Rules?**</mark>

You can find the additional management actions next to each existing template or template rule.

<figure><img src="/files/wHcOHFj5bF6raRXqKPU2" alt=""><figcaption></figcaption></figure>

* **Edit:** Use this button to open the template details page for editing.

* **Copy/Duplicate:** Use this button to duplicate the selected template. It creates a new template that contains all the same data as the original.

* **Delete:** Use this button to clear all data and remove the selected template from the LitCommerce channel.

{% hint style="success" %}
**A search bar will appear once you have 10 or more templates/template rules, allowing you to quickly locate the ones you need.**

**You can also sort the templates/template rules alphabetically or by creation date.**&#x20;
{% endhint %}

<div><figure><img src="/files/KnZpNVjdNFOO3F72WqmS" alt=""><figcaption></figcaption></figure> <figure><img src="/files/qVWbP2H6NndgWxQuEbmX" alt=""><figcaption></figcaption></figure></div>

Additionally, template rules include a **Run Now** action that applies the template rule to all eligible Draft and Error listings on the channel.

<figure><img src="/files/zpOPpEl05qnv7Gymf0BJ" alt=""><figcaption></figcaption></figure>

## <mark style="color:$primary;">**How to manually apply Templates and Template Rules?**</mark>

Once the templates and template rules are ready, you can follow these steps to manually assign them to your listings.

{% stepper %}
{% step %}
Go to the target LitCommerce channel from the sidebar menu.

<figure><img src="/files/VKpI0c0k4GwZZFO0kFMj" alt=""><figcaption></figcaption></figure>

{% endstep %}

{% step %}
Click on `Apply Template/Rules` and choose the suitable templates and template rules for the selected listings.

<figure><img src="/files/ewYQWY1422kWwqZu18qq" alt=""><figcaption></figcaption></figure>

{% endstep %}
{% endstepper %}

The channel page in LitCommerce will show which templates have been assigned to each listing.

<figure><img src="/files/hT4mntuoLkSHUoIoJ1IC" alt=""><figcaption></figcaption></figure>

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.litcommerce.com/marketplace-integration/app-features/templates-and-template-rules.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
