Shopify: How to find orders containing bundles in Shopify Flow?
12 December 2024
·
12 December 2024
1 minutes
12 December 2024 · 1 minutes
Shopify: How to find orders containing bundles in Shopify Flow?
If you want to find orders containing bundles in Shopify Flow and send an internal email, you can use the following steps. Go to Shopify Flow page on your store. Create a new flow. Select Trigger: Shopify > Start when: Order Created. Then + Add an action: Flow > For each item in order.lineItems. Then + Add a condition: Check if Line item group title not empty and exists. Then + Add an action: Send an internal email.
If you want to find orders containing bundles in Shopify Flow and send an internal email, you can use the following steps.
- Go to Shopify Flow page on your store.
- Create a new flow.
- Select Trigger: Shopify > Start when:
Order Created
. - Then + Add an action: Flow > For each
item in order.lineItems
. - Then + Add a condition: Check if
Line item group title not empty and exists
. - Then + Add an action:
Send an internal email
.
After these steps, Shopify Flow will send an email for each order that contains a bundle.
You can customize the email content and recipients as you wish.
The tricky part is the line item group title 😉
I found this path with following GraphQL query:
query GetOrder($id: ID!) {
order(id: $id) {
lineItems(first: 10) {
edges {
node {
title
lineItemGroup {
title
}
}
}
}
}
}
{
"id": "gid://shopify/Order/1234567890"
}