The editor of Rules is one of Koongo's most powerful tool that lets you manipulate, optimize, and enrich your imported product data helping you create the perfect export to meet the requirements of your chosen online marketplaces and selling channels.
You can create Rules for any attribute to transform, modify or adjust its value across any of your channel profiles. There are also pre-defined Rules that you can use and modify easily.
Using 'do - only when' Statements
A Rule consists of a set of Actions, and you can define multiple Actions at once. Each Rule applies these Actions to your product data according to the specified conditions. Each Action has two components: the 'do' part, which defines what to perform, and the 'only when' part, which sets the condition under which the Action is applied. Using these statements, you define a desired Action that will be applied under the condition you like. With the ‘do’ statement, you can then apply an Action to a group of items, such as removing part of the text or changing the information in a specific field. The ‘only when’ decides what group of items you want to target, for instance, all items with no image link or price.
Example:
do - Increase price_final_with_tax by 20 %
only when - price_final_with_tax is less than 100
Using Rules and Actions
You can define multiple Actions within a single Rule to produce different results based on specific conditions.
The Rule structure is as below:
Do Action#1 only when Condition#1 is true
Else do Action#2 only when Condition#2 is true
Else do Action#3 only when Condition#3 is true
Else do Action#4 for all other items
Example:
Increase price_final_with_tax by 20 % only when price_final_with_tax is less than 100
Increase price_final_with_tax by 15 % only when price_final_with_tax is less than 200 (and above 100)
Increase price_final_with_tax by 10 % only when price_final_with_tax is less than 500 (and above 200)
Else export price_final_with_tax value
Using Rule Operations
You can use plenty of operations for the 'do' part. Please check the operation complete list at the link below:
Using Rule Conditions
You can use plenty of conditions for the 'only when' part. Please check the operation complete list at the link below:
Rules Basic Examples
Please check some basic examples of how to use the Macro Editor at the link below:
My Rules
After creating a Rule, it will be automatically saved for future use, whether in the same export profile or a different one. You can access all saved Rules in the 'My Rules' section of the drop-down list when creating a new Rule, where each will be listed under its previously used name
Within the drop down menu you will also find some Predefined Rules which some basic Rules templates.
When you choose a specific Rule from your collection My Rules, you will have access to its usage count, indicating the number of times it has been employed across all your projects.
By default, if a Rule has been used multiple times, editing it will be disabled until you confirm your intent by clicking Edit Rule. When you choose to modify a Rule that's used in multiple places, you can decide whether to apply the changes everywhere or only to the current attribute and export profile.
You can also rename any Rule. Renaming a Rule limits the changes to that specific instance and creates a new entry in the My Rules collection.