Shopify Flow - How to set a condition to count items in shopping cart

Topic summary

Goal: set a Shopify Flow condition to detect when a shopping cart has 2 or more items. The original approach (shown in a screenshot) was questioned for correctness.

Update/solution: Use Shopify Flow’s “Sum” action first to aggregate item quantities, then evaluate that total in a condition. A screenshot illustrates configuring the Sum step.

Implementation steps:

  • Add a Sum action that sums the quantity of the cart’s line items.
  • Store the result in a variable.
  • Add a condition that checks whether the summed total is greater than or equal to 2, and proceed accordingly.

Notes: The attached images are central to understanding the correct configuration (Sum setup and subsequent condition). Outcome: A clear method was provided; no further disagreement or open questions are noted.

Summarized with AI on December 15. AI used: gpt-5.

Hey!

I would like to set a condition in Flow to check if shopping cart contains 2 items or more.

Is this the correct syntax for it? If not, how should it look like?

No, you need to use the Flow’s “Sum” action first.