Afilterallows you to specify products based on asource attribute, anattribute operator, and anoperand. Eachfilterwill resolve as either true or false. Note that theoperandsdrop down (for example ‘matches’, ‘is equal to’, and ‘is greater than’) will change based on the data type of thesource attributethat is selected for thatfilter.
Filter Example:
In the example above, “Product Name” is thesource attribute, “Matches” is theattribute operator, and “*My Product*” is theoperand.
Use thebutton to add a newfilter.
Use thebutton to delete afilter.
Use thegrab button to move the currentfilter groupup or down. Note that the rule filters apply top down, but thefilter groupsapply from the bottom up.
Filtersoperating on strings will offer theoperands“matches” and “does not match”. Theseoperandsare similar to ‘equals’ but they enable you to usetokenssuch as wildcard characters “*” (to match any set of characters) and “?” to match the single characters. For example, to find “bicycles” in an attribute you would match on “*bicycles*”. “bicycles*” would mean the attribute needs to start with “bicycles” but end with any string of characters. Note that the "*" wildcard special character also matches nothing. To match on any non-empty string, use “?*” (one character followed by any number of characters).
Filter groupsallow you to apply either “AND” or “OR” operators to the children of that group (filters and sub filter groups). By creating nestedfilter groupsyou can easily apply OR logic to two AND groups. For example:
If a given product is in category “Mens Shoes” AND has the color “Black” OR is in category “Womens Shoes” and has the color “Black” then set its title to “Black Shoes”. Note that the order of operations is made clear by thefilter groupsand that, in the above example, the AND operations will take place before the OR operation.
Use thebutton to demotefiltersinto a nestedfilter group.
Use thebutton to promotefiltersup one level offilter groups.
You can use these in sequences to move the filters up and down as well within thefilter group.
Result modifiers let you make rules that apply math operations to the final output of the price and sale price fields.
The allowed operations are add (+), subtract (-), multiply (*), and divide (/). To modify a product's existing price, you would enter {current} or {original}, the operator you want to apply, and a decimal value. For example, the rule pictured below would add $2.00 to the price of product 17:
Keep in mind that if you're using the {original}token, your first criteria in the rule must be price or sale price, as those are the only fields that can be properly modified this way. Also, please remember that currency is always formatted as ####.## through DotFeed. Customers whose sites use commas instead of periods as the decimal delimiter will need to remember to enter prices in the format above instead of as ####,##.
Source Attribute– An attribute from the data in your source feed.
Attribute Operator– The attribute operator defines how to compare a source attribute to an operand. E.g. “equals” or “is less than”.
Operand– The input field to which the attribute operator applies. Depending on the source attribute, this field may require a certain format (such as integer, decimal, or date).
Filter– Filters consist of a source attribute, an attribute operator, and an operand to determine if a product qualifies for the given rule.
Data Type– Data types include string, integer, decimal, date, and boolean. Each source attribute has a data type. The data type of the selected attribute determines what attribute operators to offer and how to validate the operand.
Filter Group– A logical grouping that holds filters and sub filter groups. Each group has a logical operator, “AND” or “OR”, to apply to its children. Filter groups can be nested up to 5 levels deep.
Tokens- There are 4 tokens you can use to represent data in your rules:
*means zero or more characters (this is known as a wildcard character)
?means exactly one character (this is known as a wildcard character)
{original}means the value of the first source attribute in the current rule.
{current}means the cumulative value of the attribute in that result field.