The task
A computed field tells you which size each customer buys most. You want to send them a set of new arrivals and show only products in their size. To do that, build the campaign markup with template engine parameters.How it works
- Your account has a computed field that works out which size (a custom field on the product) the customer buys most often, and writes the value to their profile. For example, a customer who mostly buys size M gets
M. - A template engine function lets you pick, from any product segment, only the products with the right value for each customer. If a product’s size matches the customer’s computed value, it can show in the campaign.
How to build the parameter
- To reach the list of all unique products, use the base
Productsparameter. - Pick a product segment with the
GetBySegment()function. - Filter the set by the customer’s computed field with the
FilterByRecipientCustomField()function. - Set extra filtering and sorting:
You can output any product field from the collection you’ve built.