Cart & Order Conditions
Cart & Order conditions let you trigger customizations based on what is in the customer’s cart — the total price, weight, quantity, specific products, tags, or collections.
Total amount
Section titled “Total amount”Condition key: totalAmount
The total amount the customer is shown to pay at checkout. This includes shipping costs and taxes (depending on your store’s tax settings).
Operators: At least (≥), At most (≤)
Use cases:
- Hide Cash on Delivery for orders over £200
- Show a premium shipping option only for orders above a threshold
- Display bank transfer instructions for high-value orders
Example: Total amount → At least → 150 will match any checkout where the customer pays £150 or more.
Subtotal amount
Section titled “Subtotal amount”Condition key: subtotalAmount
The subtotal shown at checkout — the sum of all line item prices before shipping and taxes are applied. If your store’s prices include tax, tax is included in the subtotal.
Operators: At least (≥), At most (≤)
Use cases:
- Free shipping threshold logic (combined with delivery customization)
- Different COD rules for different order sizes
Total weight
Section titled “Total weight”Condition key: totalWeight
The combined weight of all items in the cart, converted to kilograms.
Operators: At least (≥), At most (≤)
Use cases:
- Hide oversized-item shipping options for light carts
- Restrict certain delivery methods to orders under a weight limit
Total quantity
Section titled “Total quantity”Condition key: totalQuantity
The sum of the quantities of all line items in the cart.
Operators: At least (≥), At most (≤), Is (==), Is not (!=)
Use cases:
- Restrict COD to single-item orders
- Offer bulk shipping only for carts with 5+ items
Product
Section titled “Product”Condition key: productItem
Checks whether one or more specific products are (or are not) in the cart. You select products by their Shopify product ID from your store’s catalog.
Operators: Is one of, Is not any of
Use cases:
- Hide a payment method when a specific product is in the cart
- Show special shipping for orders containing a fragile item
Product variant
Section titled “Product variant”Condition key: productVariant
Checks whether specific product variants are present in the cart. Useful when a single product has variants with different requirements (e.g. size, color).
Operators: Is one of, Is not any of
Use cases:
- Hide or restrict certain shipping or payment methods when the cart includes specific variants you pick in the editor (for example oversized options, made-to-order variants, or SKUs that need a different fulfillment path than the rest of the product)
- Apply stricter rules only for the variants that need them while leaving other options of the same product unchanged
Product tag
Section titled “Product tag”Condition key: productTag
Checks whether products in the cart have matching tags. You can control which items must match using the scope setting, and choose between exact and partial tag matching.
Scope:
| Scope | Meaning |
|---|---|
| Matches any item | At least one line item has a matching tag |
| Matches all items | Every line item has a matching tag |
| Matches no items | No line item has a matching tag |
Operators: Is one of, Is not any of, Tag contains text, Tag excludes text
Use cases:
- Hide COD when the cart contains any “fragile” tagged product (Matches any item)
- Restrict payment methods for “pre-order” tagged items using partial match (Tag contains text)
- Apply a rule only when the entire cart consists of digital products (Matches all items)
- Block a shipping method when no item has a “shippable” tag (Matches no items)
Product tag – all items (legacy)
Section titled “Product tag – all items (legacy)”Condition key: allProductTag
Returns true only if all items in the cart have the specified tag.
Operators: Is one of, Is not any of
Collection
Section titled “Collection”Condition key: productCollection
Returns true if any product in the cart belongs to one of the specified Shopify collections.
Operators: Is one of, Is not any of
Use cases:
- Restrict certain payment methods for products in the “Hazardous” collection
- Show specialized shipping for products in “Oversized Items”
Product variant title
Section titled “Product variant title”Condition key: productVariantTitle
Checks the variant title (e.g. “Large / Red”) of any item in the cart. Useful when you don’t have specific variant IDs but know the title format.
Operators: Is one of, Is not any of, Text contains, Text does not contain, Is empty, Is not empty
Contains subscription
Section titled “Contains subscription”Condition key: containsSubscription
Returns true if at least one item in the cart is part of a selling plan (i.e. a subscription product).
Operators: Is true, Is false
Use cases:
- Restrict payment methods for subscription orders (e.g. require credit card only)
- Offer different shipping options when a subscription product is in the cart
- Prevent COD for subscription orders