The Basics
Feeds: Examples of Applying Rules
Set for All Items One of the simplest rules, also one ot the most effective, is to ensure that a certain field has the same value for all your items. You can achieve this by creating a rule that assigns these values. By selecting "All" in the If section, you automatically include all items. Additionally, by using "And" statements, you can apply multiple changes to a single item at once. ReFew readersChecking Your Items In The Rules Step
In the Rules step, a lot of changes can be made to your items. You might modify your item's titles, exclude items or set the category of your items. In each rule, you can have an overview of which items are exported and what data (e.g. price, title, category etc.) for those items looks like when it's being sent to the export channel. On the right side you can see how many items are affected by yourFew readers
THEN/ELSE Statements
Rules: Then and Else Statements
Rules are a key feature in our Feeds Management tool. Each rule is divided into three parts: the "If", "Then" and "Else" sections. By utilizing these If-Then-Else statements, you can manipulate your imported data in the same way a programmer would. This article focuses on the Then and Else segment of a rule. To learn more about the If-condition, read this article Then-statement The Then-staFew readersRules: Append Value
Used for: adding extra text/numbers to the end of an existing field. Used in: Then-statements and Else-statements. With the "append value" rule you can add a certain text or number of your choice to the end of an existing field. For example, you could use it to add promotional text to the end of every title. How this works is shown in the example below.Few readersRules: Calculate
Used for: making basic calculations with any given number. Used in: Then-statements and Else-statements. The "calculate" rule acts as your personal little calculator. With this rule you can do basic calculations to increase your prices, for example:Few readersRules: Copy Value
Used for: copying the content from one field to another field. Used in: Then-statements and Else-statements. The "copy value" rule copies the value of a certain field to a field of your choice. One example of when this rule can be useful is when a number of items do not have a description, and you want to use the title as the description for those items. Another example is when the field "Tags" is empty for a large portion of your items. With the copy value rule you could easilyFew readersRules: Modify Text
Used for: Changing the markup of text. Used in: Then-statements and Else-statements. The modify text rule includes a set of options that allow you to adjust how your text is formatted. For example, you can make your entire title/description lowercase or capitalize the first letter of each word. In the screenshot below, you can see all the rules that fall under the "modify text" rule. Most of thFew readersRules: Search For Value
Used for: Finding a value in one field and then assigning that value to another field if it's found. Used in: Then-statements and Else-statements. The "search for value" function is very helpful when your export channel needs details like "color", "brand" or "size" in separate fields. This information is often included in your item's description but may not be in a specific field. With the "search for value" rule, you can easily look through all your product-title toFew readersRules: Compare And Replace Value
Used for: replacing the entire value of a field with a different value of your choice. It will only make the replacement if there is an exact match. Used in: Then-statements and Else-statements. This rule performs an exact match on the input value and only replaces it when the complete field value matches exactly. For instance, if the compare value is "Red" and the replacement value is "Blue", the output will be "Blue" only for products that have the exact input value "Red"Few readers