Condition check if order contains product A

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

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

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:

  1. 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:

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

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

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

  2. 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.

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

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.

I hope this helps! :blush:

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

Regards,
Abhishek | Swym

1 Like

Thank you Abhishek. A fllow up question if you don’t mind.

How do I schedule something to run or send X days after “order created”?

Hey @emilkoz ,

I’m really glad that my solution helped you! :blush:

Now, regarding how to schedule a Flow to run after a specific delay — you can follow the steps below to add a wait time before the final action:

  1. After the condition of the flow, Add action, and in action From Shopify flow select Wait, as shown in the screenshot below:

  1. Set the waiting duration as per your requirements.

  1. Now in the Then section, connect the final action you want the flow to perform.

  1. Done? Now save the flow and your flow should look like something as shown in the screenshot below. Ex: I have modified my flow to execute after 2 days of placing the order.

I hope this helps! :blush:

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

Regards,
Abhishek | Swym