The Macro Editor is Koongo's powerful tool that allows you to manipulate, optimize and enrich your imported product data, creating the perfect export that meets all requirements of your chosen online marketplaces and selling channels. You can create macros for all attributes in any of your channel profiles. There are also pre-defined macros that you can use and modify easily.
- Using 'do - only when' Statements
- Using Macro Editor Rules
- Using Macro Editor Operations
- Using Macro Editor Conditions
- Macro Editor Basic Examples
- My Macros
Using 'do - only when' Statements
A macro consists of Rules. You can define several different Rules at once. Each Rule consists of two parts, an action part ‘do’ and a condition part ‘only when’. 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.
- do - Increase price_final_with_tax by 20 %
- only when - price_final_with_tax is less than 100
Using Macro Editor Rules
You can define several Rules for one Macro to specify different results for selected conditions.
The Rule structure is as below:
- Do Rule#1 only when Condition#1 is true
- Else do Rule#2 only when Condition#2 is true
- Else do Rule#3 only when Condition#3 is true
- Else do Rule#4 for all other items
- 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 Macro Editor Operations
You can use plenty of operations for the 'do' part. Please check the operation complete list at the link below:
Using Macro Editor Conditions
You can use plenty of conditions for the 'only when' part. Please check the operation complete list at the link below:
Macro Editor Basic Examples
Please check some basic examples of how to use the Macro Editor at the link below:
After creating a macro rule, it will be automatically saved for future use, whether in the same export profile or a different one. You can access it in the My Macros section of the Create Macro drop down list, where it will be listed with its previously used name.
Within the drop down menu you will also find some Predefined Macros which some basic macro rules to be used as an example.
When you choose a specific macro from your collection My Macros, you will have access to its usage count, indicating the number of times it has been employed across all your projects.
By default, if you have used the same macro multiple times, the macro editing functionality will be disabled until you confirm your intention by clicking on Edit Macro. In the event that you decide to make modifications to a macro that has been used multiple times, you have the option to choose whether the modifications should be applied everywhere or only to the attribute and profile being adjusted.
Additionally, you have the ability to rename the macro rule. Renaming the macro will restrict the modifications to that particular instance, resulting in the creation of a new macro within My Macros collection.