Check user tags in shopify flow

Check user tags in shopify flow

Sergio5
Shopify Partner
1 0 0

Hi, I am using Shopify flow and I need to check if a user do not have a specific tag when they make an order. Which variable could I use to check this? I have tried using order.customer.tag_list but it does not work.

Replies 2 (2)

ReturnPrime
Shopify Partner
488 67 111

Hi @Sergio5 

It looks like you’re on the right path with Shopify Flow! Unfortunately, order.customer.tag_list won’t work directly in this case because Shopify Flow doesn’t have a built-in way to check if a customer doesn’t have a tag. Here’s a simple workaround:

  1. Use the “Condition” card in your workflow to check if the customer has the specific tag. Flow doesn’t directly support “does not have” checks, so we have to flip the logic.

  2. If the condition is met (meaning the customer does have the tag), you can end the workflow right there.

  3. If the customer doesn’t have the tag, the flow will continue with the actions you’ve set up.

It’s a bit of a workaround, but it gets the job done! 

Regards,
Adebayo

Return Prime

paul_n
Shopify Staff
1667 183 380

Flow does have a way to check if a customer does not have a tag, so not sure what you are saying at all. 

 

The condition would be, if none of order / customer / tags is equal "the tag label"

Paul_N | Flow Product Manager @ Shopify
- Finding Flow useful? Leave us a review
- Need Flow help? Check out our help docs.
- Building for Flow? Check out Flow's dev docs.