Skip to content

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.

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.


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

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

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

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

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

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:

ScopeMeaning
Matches any itemAt least one line item has a matching tag
Matches all itemsEvery line item has a matching tag
Matches no itemsNo 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)

Condition key: allProductTag

Returns true only if all items in the cart have the specified tag.

Operators: Is one of, Is not any of


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”

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


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