Solved

Restrict flow branch to people who only purchase items from a specific category

  • 11 September 2023
  • 3 replies
  • 38 views

Userlevel 4
Badge +9

Hi folks, 

 

I would like to make an additional branch to a post-purchase flow, that ONLY sends to subscribers who have:

  1. Purchased over a certain value
  2. The items in their order were in one category only

Is this possible? I can get close with a trigger split, but I presume “contains” means people ordering products additional categories at the same time would also be included?

 

Thanks!

icon

Best answer by David To 11 September 2023, 20:48

View original

3 replies

Userlevel 7
Badge +60

Hey @wernstrom,

Tough case you got here. You’re absolutely right. Assuming you’re flow is triggered by a placed order event, using a condition such as “collection contains X” would be evaluated based on the entire order. This means, that if someone purchases more than one item - which includes one from the targeted collection, they would be eligible. 

One way I can see this being accomplished would be through a series of trigger splits with the conditions of: “Collections contains X AND Collection does not contain Y AND Collection does not contain Z...”. In this case, Y and Z would be all other categories that is not X. This would allow you to isolate only orders that were purchased with this specific collection. 

You can then iterate through the rest of the collections with a different branch with a condition of: “Collections contains Y AND Collection does not contain Y AND Collection does not contain X...”. 

Depending on how many collections there are, this can get expansive. 

A more technical method would be triggering a custom event when someone’s purchases contains only products from one collection. This way, you can simply trigger a flow off this custom events while ignoring orders which contain products from a wide number of categories. 

I hope this helps!

David

Userlevel 4
Badge +9

Thanks @David To - true, there are a lot of categories to exclude in this case. Thanks for clarifying though!

Badge +1

Are you using Shopify? I haven’t tried it but I wonder if it would work to create a collection that only has items from that category and another collection that has every other item that you could use as an exclusion (collections doesn’t contain)?

Reply