Checkout Validations

Conditions

The condition groups you can use in validations, Checkout Studio blocks and Auto Add to Cart.


The Conditions window is where you describe when something should happen. It is used in checkout validations, in Checkout Studio blocks (On trigger) and in Auto Add to Cart.

1. Add a condition

  1. In the validation form or the block settings click Add conditions (or Edit conditions if some already exist). The Conditions window opens.
  2. For each condition choose a group, then a field, an operator and a value.
  3. Add more conditions. For validations, the error shows only while all of them are true.
Conditions window

2. Condition groups

GroupExamples
ProductCollection, tag, product type, vendor, metafield, gift card
Product variantVariant, SKU, price, weight, compare-at price, requires shipping, metafield
CartSubtotal, total weight, total quantity, total tax
Cart lineLine quantity, line amount, attribute
Shipping addressCity, state / province, country, ZIP / postal code
Billing addressCity, state / province, country, ZIP / postal code
CustomerLog in status, B2B customer, metafield, company name, email, phone
DeliverySelected delivery option, delivery options, delivery cost, delivery method type, is delivery required
EligibleEligible amount, eligible quantity, eligible weight

3. What is hidden in validations

Checkout validations hide conditions that Shopify's validation system has no data for, for example the cart note, payment type, discount codes, gift cards and marketing consent. Those stay available for Auto Add to Cart and for blocks.

Shopify also limits how much data one validation can read. If you combine conditions that cannot be checked together at checkout, the app tells you to remove one.

Tips

  • Use the fewest conditions that do the job.
  • Combine a Cart subtotal condition with a Country condition for country-specific minimums.