Articles on: Feed Rules

Feed: Rules

The Rules tab in each LitCommerce product feed lets you modify and filter product data to guarantee alignment between the final export feed and the specific requirements of your chosen platform.



This article outlines the instructions for creating and setting up rules for your feed in LitCommerce.


Create & set up rules


Step 1: Add rules



In the Rules tab, click on Add Rule to start adding rules to your feed.



The Rule stage is not mandatory, but is recommended. Simply click on the Skip This Step button if you want to skip it


Here, you will find three options:


Rules Templates


Use pre-made rules to save time on manual setup. You can select any rules from the list and add them to the feed for editing.



Create New Rule


Add a completely new rule to your feed. You will need to set a name, description, and conditions for the rule.




Copy Rule(s)


Copy existing rule(s) from another feed or global rule to this feed. Start by selecting a source feed (or global rule), choosing the rules you want to copy, and clicking on Copy



Once added, these rules can still be modified to better fit your feed.



In case this tab already has rules, find the Add Rule button at the end of the Rule Name list 



Step 2: Edit rules


Edit the added rules to ensure they align with the data intended for the feed. The process consists of the following components:


If


This statement determines which items a rule should apply to. You have several options to select the appropriate target by specifying the properties below.



Example: To filter out items with no description, select the Description property and set the condition to 'is empty'.



And (optional)


'And' lets you combine multiple conditions, making your rule more specific. When using 'And', all conditions must be true to locate the correct targeted items. 


Example: To target all items priced between 10 and 25, specify: If Price is greater than 10 - And - If Price is less than 25. This way, only products that satisfy both conditions will be included in this rule.



Or (optional)


Another option to have more detailed targets for a rule and expand your If-statement is by incorporating 'Or'. Unlike 'And', it works by checking if at least one of the conditions is true.


Example: To target items with no description or title, you can specify: If Description is empty - Or - If Product Title is empty. With this, all products that meet either condition will be included in this rule.



Then


'Then' lets you decide on the actions taken on the selected items in the If-statement.


Example: To exclude products with no description from the feed, set up the rule as follows: If Description is empty - Then exclude product from feed.



Else (optional)


Incorporating 'Else' into a rule lets you apply actions to items that do not fall under the If-statement. This minimizes the total number of rules you need to create.


Example: To set a 0 quantity for products with less than 3 in inventory, while giving the remaining products a quantity of 100, you can create a rule with the following logic: If Quantity is less than 3 - Then take Quantity and set to value 0 - Else take Quantity and set to value 100.



Rules are applied sequentially, from top to bottom. You can reorder them easily with drag-and-drop. However, this can change the number of products included in the feed  


Additionally, for more detailed rule conditions, check out the following articles.


Rules: Copy Value

Rules: Compare And Replace Value

Rules: Search For Value

Rules: Calculate

Rules: Modify Text


Step 3: Save rules


Click Save after each rule to ensure the conditions are applied to the product feed.



Step 4: Other actions


When clicking the Action button, you can also perform the following actions on the rules:


  • Delete selected rules: Remove the selected rules from the feed. 
  • Enable selected rules: Reactivate the disabled rules to execute them along with all other rules. This may significantly impact the rule results. 
  • Disable selected rules: Exclude the selected rules from being executed. You can still make and save changes to them.
  • Search for field in rules: Find the designated field in the selected rules. The rules that contain this field will be marked with a blue dot.
  • Add custom field: Add a new field that does not exist in your Main Store for creating rules and mappings. Refer to Custom Fields for more information.



Check items


This section gives you an overview of products and their data (e.g., price, title, category) after the corresponding rules are applied


  • Item count: Display all products that meet the rule's conditions. Click on Select Items to view them.
  • Before this rule: Display the valid products in the feed before the rule is applied. Click on View Items to view them.
  • After this rule: Display the remaining products in the feed after applying the rule. Only these products will be applied with the next rule. Click on View Items to view them.



Based on this data, you may add, remove, or update rules to meet your expectations.


Related features


To enhance the user experience, LitCommerce also offers other features to make the feed rules setup process easier.


Ready-Made Rules


They are a fixed set of basic rules created by LitCommerce. Enabling the Apply Ready-Made Rules and Mapping feature during feed configuration will automatically set rules for required fields and create necessary custom fields for the Mapping section.




These rules are only available for Meta Online Products and Google Shopping feeds


Global Rules


This feature allows you to group frequently used rules and apply them across all feeds. Only one set of Global Rules can be selected per feed.



You can create one by clicking on New Global Rules in the Global Rules section. Then, add a name, select a color, and click on Continue



From there, select the suitable methods and add new rules for your Global Rule. Click Save Rule to complete the setup.




Global Rules is not accessible when configuring your first feed, but you can add it later on


Custom Fields


You can use this feature to add values for fields that are not available in your Main Store. Custom fields are created only in LitCommerce and will not be added to your Main Store.


There are two ways to create a custom field:


  1. Go to the Rules tab on a feed, click on Action, and select Add Custom Field. After that, add a name and click Create.




  1. Head to the Settings section on the side-bar menu. Then, click on Add Custom Field in the Custom Fields tab, add a name, and click Create.



These custom fields will be available in the Field dropdown list in the Rules tab for selection. 



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


Updated on: 18/08/2025

Was this article helpful?

Share your feedback

Cancel

Thank you!