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.
Templates
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.
How to create a Template?
Select the Templates & Rules section on the sidebar menu to find all the integrated channel tabs. Each tab contains its own set of templates.

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

Click + Add New beside the template you want to create, and proceed with the setup.

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 (*).

Each template requires a Template Name, which lets you differentiate it from other templates.

Once the template is completed, click Save.

Set up templates for channels
Each channel has its own set of templates due to differences in platform requirements. For more detailed information, check out our marketplace-specific guides:
Auto-assign templates
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.


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.

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.
Template Rules
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.
How to create Template Rules?
Once your templates are set up, open the Template Rules tab and click + Add New to start creating your template rule.

A template rule consists of three main sections:
1- Select templates to use in this rule
Select the templates you would like to include in the template rule. Adding all template types is optional.

Click View to see template details.

2- Set conditions to auto-apply this rule (optional)
Create different conditions so LitCommerce can automatically apply your template rule to new listings added to the channel. Refer HERE for more details on the process.

3- Name your rule
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.

After all the necessary information is provided, click Save to save the template rule configuration.
Use the Save & Apply button to assign the template rule to all existing eligible Draft and Error listings on the channel.

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

Auto-apply template rules
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.
There is no limit to the number of conditions that can be added per template rule.
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.

Let’s go through each condition component below.
Logical relationship between conditions: And/Or
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.

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

Product attributes vary depending on your Main Store.
Comparison conditions
Choose the suitable condition based on the selected product field. Some of the conditions include:
Equals to
Checks whether the selected product field value matches the specified condition value.
Not equal to
Checks whether the selected product field value is different from the specified condition value.
Contains
Checks whether the selected product field value includes the specified condition value.
Does not contain
Checks whether the selected product field value does not include the specified condition value.
Starts with
Check whether the selected product field value starts with the condition value.
Ends with
Check whether the selected product field value ends with the condition value.
Less than
Checks whether the selected product field value is lower than the specified condition value.
Less than or equal
Checks whether the selected product field value is lower than or the same as the specified condition value.
Greater than
Checks whether the selected product field value is higher than the specified condition value.
Greater than or equal
Checks whether the selected product field value is higher than or the same as the specified condition value.
Is available
Checks whether the selected product field contains a value.
Is not available
Checks whether the selected product field does not contain a value.

Condition types vary by field. The system only shows condition options that are compatible with the field’s data type.
Condition matching: Any/All
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.

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

How to manage Templates and Template Rules?
You can find the additional management actions next to each existing template or template rule.

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.
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.


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

How to manually apply Templates and Template Rules?
Once the templates and template rules are ready, you can follow these steps to manually assign them to your listings.
Go to the target LitCommerce channel from the sidebar menu.

Click on Apply Template/Rules and choose the suitable templates and template rules for the selected listings.

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

If you have any questions, let us know via the Chat Box in the bottom-right corner of our Help Center.
Last updated
Was this helpful?