Condition check if order contains product A

Condition check if order contains product A

emilkoz
Visitor
3 0 0

First time user of Flow here so sorry if this is as easy as it should be but...

 

I can't figure out how to check if an order (trigger) has product A.

 

This should be really straight forward, how do I set it up??

 

Thanks in advance

Replies 2 (2)
emilkoz
Visitor
3 0 0

Thanks Pravesh! I could however not find the exact same Name.

 

In template Name is "Order.lineItems.name"

I could only find Name "lineItems_item.name"

 

How do I find the same one (if it should be that one) as in the template?

 

Many thanks

swym
Trailblazer
182 37 79

Hey @emilkoz

 

You can set a shopify flow where you want to check if the order contains specific product. To implement this please follow the steps below: 

 

1.  Select "Order Created" as the trigger. You can even search for it in the search box. Please see the screenshot below: 

Screenshot 2025-02-21 at 11.41.37 AM.png

 

2. Now you need to add a condition for which only the flow should execute, for that click on condition button appearing just below the trigger.

   A condition drawer would slide, from that click on "Add a variable" button. 
   A popup will show up asking you to add the variables for condition. Please see the screenshot below:  
Screenshot 2025-02-21 at 11.44.28 AM.png

 

3. In the search field, search for lineitem/product/id and select the option highlighted in the screenshot below: 

Screenshot 2025-02-21 at 11.49.06 AM.png

 

4. Once you select the option, then you will be prompted to select the product as shown in the screenshot below: 

Screenshot 2025-02-21 at 11.50.51 AM.png

 

5. Click on "Select product" and from the list of products you can search for the product for which you want to add a flow. 

6. Once the product is selected, you will need to add an action for the flow, through which you can select whatever you want to do when this product is ordered on the store.

7. Done? Now you just need to turn on the workflow and bingo—you’re good to go! 🎉

 

For example, in the screenshot below: you can see that I have created a flow for flagging a gift product, and if the order contains the product, then I will tag that order as Gift Order.     

Screenshot 2025-02-21 at 11.56.20 AM.png 

 

I hope this helps! 😊

 

If my response helped, please consider giving it a like (👍) and marking it as an accepted solution—it helps other merchants with the same question.

 

Regards,
Abhishek | Swym

- Appreciate the assistance. Show your approval with a Like! And when your question finds its answer, seal the deal by marking it as an Accepted Solution!
- Our Solutions: Wishlist Plus | Swym Back in Stock Alerts | Swym Gift Lists and Registries