A customer who buys an insulated bottle may need a spare cap. If the cap is already in that order, the offer adds nothing. Use the order that starts the flow to decide whether to send the offer.
Compare three orders
In this fictional Shopify store, the flow starts on Shopify's Placed Order metric. Its trigger filter requires the order's Collections to include Bottles and exclude Spare caps.
| Current order | Earlier purchase | Trigger filter |
|---|---|---|
| Bottle only | None | Passes |
| Bottle and spare cap | None | Fails |
| Mug only | Bottle | Fails |
The bottle in an earlier order has no effect on the mug order's trigger filter. Klaviyo evaluates the triggering event at entry for a metric-triggered flow. Klaviyo flow triggers and filters.
Check the event and configure the filter
- Open Shopify's Placed Order metric and inspect the details of an order in its activity feed. Check the top-level
Collectionsvalues. Use the exact names from your own event. Klaviyo's Shopify data reference. - Select that Placed Order metric in the flow. Open Trigger Filters and set both
Collectionsconditions to type List. Set one to containsBottlesand the other to doesn't containSpare caps. Join them with AND. The doesn't equal operator can let a mixed order through because its list contains other collections too. Klaviyo's trigger filter troubleshooting guide. - Compare the condition with a bottle-only order and a bottle-and-cap order. If the cap's collection is missing from the event, check the product's Shopify collection and the event data before relying on the filter.
If the offer should also skip customers who bought a cap earlier, use a separate profile filter for purchase history. Klaviyo checks profile filters at entry and again before actions such as sending a message.