Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hello!
I am looking to create an email trigger if a Draft Order is placed with certain Product Types that are over a "Max" quantity. The trigger I thought would work is:
"IF
(any of shop/product types) ProductType is equal to A
AND
(any of draft order/line items) Quantity is greater than 10
THEN"
The problem is if 'ProductType A' is in the order at under 10, but 'ProductType B' is over 10 (which is allowed), then it sends the trigger. There doesn't seem to be a condition to check if a specific ProductType is over the limit and the dropbox for "any of draft order" won't point to the previous condition. Any ideas?
Solved! Go to the solution
This is an accepted solution.
This doesn't make sense because it's checking all of your Shop's products and not the Draft Order's products:
`(any of shop/product types) ProductType is equal to A`
There is a limitation in the current version of Flow that doesn't let you access product data for a lineItem. The version coming very soon (some merchants have already been moved over) allows access to all of that product data, so I'd recommend waiting for it.
We are also working on an improvement for the new version of Flow that will allow you to write multiple conditions for a specific item in an array, which is I think was you want to do. Something like:
`if any of order / lineItems has a product.category = A and quantity > 10`
This is an accepted solution.
This doesn't make sense because it's checking all of your Shop's products and not the Draft Order's products:
`(any of shop/product types) ProductType is equal to A`
There is a limitation in the current version of Flow that doesn't let you access product data for a lineItem. The version coming very soon (some merchants have already been moved over) allows access to all of that product data, so I'd recommend waiting for it.
We are also working on an improvement for the new version of Flow that will allow you to write multiple conditions for a specific item in an array, which is I think was you want to do. Something like:
`if any of order / lineItems has a product.category = A and quantity > 10`
Thanks!
When I looked up Product Type, that was the only option. I could not find anything in the Draft Order API that checks product type.
I just cracked open Flow yesterday so I'm still learning the nuances, but I'm excited for the new version. How soon can we get moved over?
Thanks to all Community members that participated in our inaugural 2 week AMA on the new E...
By Jacqui Mar 10, 2023Upskill and stand out with the new Shopify Foundations Certification program
By SarahF_Shopify Mar 6, 2023One of the key components to running a successful online business is having clear and co...
By Ollie Mar 6, 2023