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.
User | RANK |
---|---|
3 | |
2 | |
2 | |
2 | |
2 |
Transform this holiday season into a shopping spree. Plus, learn how to effortlessly open ...
By Jasonh Dec 8, 2023Make the shift from discounts to donations, and witness your business not only thrive fina...
By Holly Dec 4, 2023On our Shopify Expert Marketplace, you can find many trusted third party developers and fr...
By Arno Nov 27, 2023