Shopify Flow is an ecommerce automation platform that enables you to automate tasks and processes within your store and across your apps.
Hey,
Now I want to create a flow to check if my customer's order contains 7 or more products from a specific collection.
Sometimes, an order will contain different products from different collections at the same time.
For example, the order contain product A from Collection 1, product B from Collection 1, and product C from Collection 2. And now I want to check if the order contains 7 or more products from Collection 1.
How can I set the condition? I just found that I can set conditions to check the collection id (collections_item.id) , but I can't check there have how many line items from the collection.
Thank you very much!
There isn't currently a way to count in the condition step. If Flow has a filter step, you could take a list (like the lineItems) and then filter that list by the same kind of condition and then count afterwards.
For now, if you need to count you have to do it via Liquid in an action. What action do you need to do with that count?
Hi,
I need to add a product to this order after counting.
Hey Community! As we jump into 2025, we want to give a big shout-out to all of you wh...
By JasonH Jan 7, 2025Hey Community! As the holiday season unfolds, we want to extend heartfelt thanks to a...
By JasonH Dec 6, 2024Dropshipping, a high-growth, $226 billion-dollar industry, remains a highly dynamic bus...
By JasonH Nov 27, 2024