Skip to content

Advanced checkout validation rules

Combine multiple conditions with AND/OR logic in a single rule. Build precise checkout validation for any scenario — from wholesale gating to regional restrictions.

How it works

Anatomy of a validation rule

Every rule follows the same pattern: define conditions, choose logic, write an error message, and pick where it appears.

Conditions

One or more checks
across cart, product,
customer & location

&|

AND / OR Logic

All must match (AND)
or any can match (OR)

Error Message

Custom message shown
when conditions match —
blocks checkout

Placement

Checkout only, or
Cart + Checkout for
dual-layer validation

Key differentiator

Combine conditions with AND/OR logic

Most apps let you set one condition per rule. Nex MOQ lets you combine multiple conditions in a single rule using AND or OR logic — so you can express exactly the business rules you need.

&

AND — all conditions must be true

Every condition in the rule must match for the error to appear

|

OR — any condition can be true

The error appears if at least one condition matches

Live rule examples

AND All conditions must match
Customer tag = "wholesale" Cart total < $500
"Wholesale orders require a $500 minimum"
Cart + Checkout
AND All conditions must match
Country = Canada Product "Hazmat Kit" in cart
"This product cannot be shipped to Canada"
Checkout only
AND All conditions must match
Customer NOT logged in Cart total > $200
"Please log in for orders over $200"
Cart + Checkout
OR Any condition triggers
Customer tag ≠ "VIP" Order total < $1,000
"Minimum $1,000 order required for non-VIP customers"
Checkout only

25+ conditions to build any rule

Use a single condition or combine multiple. When combining, choose AND (all must match) or OR (any can match). Mix and match across four categories.

Cart conditions

5 conditions

Cart total Cart subtotal Collection total Product count Count with qty

Product conditions

13 conditions

In/not in cart Collection Qty min/max SKU & title Vendor

Customer conditions

4 conditions

Customer tag Login status Metafields

Location conditions

3 conditions

Country Province / state Zip / postal

Customizable error messages with smart placement

Every rule shows a custom error message when conditions match. Choose where it appears and write it in any language — with dynamic values like amounts and quantities.

Dual-layer placement

Show errors on the cart page (friendly guidance), at checkout (hard block), or both for maximum coverage.

Any language, dynamic values

Write messages in any language. Insert dynamic values like cart total, quantity needed, or product name.

Brand-matched styling

Configure error styling to match your store — colors, icons, and formatting from the app dashboard.

Cart page preview

Your Cart (3 items) $342.00

Wholesale orders require a $500 minimum

Add $158.00 more to proceed to checkout.

Checkout

Set up in minutes

No code required. Build rules visually in the app dashboard.

1

Pick your conditions

Choose from 25+ conditions across cart, product, customer, and location categories.

2

Set AND/OR logic

Choose whether all conditions must match (AND) or any single condition triggers the rule (OR).

3

Write your error message & choose placement

Write a custom error message in any language with dynamic values. Then choose where it appears — checkout page only, or cart page + checkout for dual-layer validation.

Ready to enforce order limits?

Start your free trial. No code required. Works on all Shopify plans.

Plans from $9.99/month after free trial · Free for dev stores