How to trigger actions based on order item quantity in Shopify Flow?

Is there a way to trigger an action based on how many items were in the order?

I saw order.lineItems - but no size/quantity/totalCount or something similar

Thanks!

1 Like

You can try liquid size function for the same somthing like

{% assign my_array = order.lineItems %}
{{ my_array.size }}

How would I do that in Shopify Flow? Is there a way to write your own logic in conditions?

If you ae using https://apps.shopify.com/flow?shpxid=e0ac7cd4-BC61-4197-FC05-8C44768EE440 app than you need to talk to shopify as they will best guide you , as it is there app.

There is a Flow template that uses the correct value, and you might draw inspiration from it: Get notified about irregularly large order quantities.

It references the Order. currentSubtotalLineItemsQuantity field which should do what you look for.

1 Like