Conditions reference
Every condition a Checkpost rule can check, and the operators each one supports. A rule blocks checkout when all (or any) of its conditions are true.
Cart
| Condition | Example |
| Cart subtotal | Cart subtotal is less than 50 |
| Cart total (incl. tax & shipping) | Cart total (incl. tax & shipping) is greater than 1000 |
| Total item quantity | Total item quantity is greater than 10 |
| Number of different items | Number of different items is greater than 10 |
Products in cart
| Condition | Example |
| Cart contains products | Cart contains any product |
| Cart does not contain products | Cart does not contain any product |
| Cart contains other products than | Cart contains items other than any product |
| Quantity of any single cart line | Quantity of any single cart line (any product) is greater than 2 |
| Quantity per product across variants | Quantity per product across variants (any product) is greater than 2 |
| Quantity per variant across cart lines | Quantity per variant across cart lines (any product) is greater than 2 |
| Combined quantity of products | Combined quantity of products (any product) is greater than 5 |
| Combined subtotal of products | Combined subtotal of products (any product) is less than 50 |
Customer
| Condition | Example |
| Customer is logged in | Customer is not logged in |
| Customer is a B2B company buyer | Customer is a B2B company buyer |
| Customer tags | Customer has any of tags |
| Customer's previous orders | Customer's previous orders is exactly 0 |
| Customer's lifetime spend | Customer's lifetime spend is less than 100 |
| Email address | Email address ends with any of |
| Phone number | Phone number is empty |
Shipping address
| Condition | Example |
| Has a shipping address | Has a shipping address |
| Country | Country is any of |
| State / province | State / province is any of |
| ZIP / postal code | ZIP / postal code starts with any of |
| City | City is any of |
| Address line 1 | Address line 1 contains any of |
| Address line 2 | Address line 2 contains any of |
| Company | Company is empty |
| First name | First name contains any of |
| Last name | Last name contains any of |
Delivery
| Condition | Example |
| Delivery method type | Delivery method type is any of |
| Delivery method name | Delivery method name contains any of |
Market
| Condition | Example |
| Market country | Market country is any of |
| Storefront language | Storefront language is any of |
Date & time
| Condition | Example |
| Time of day | Store time is outside 09:00 and 17:00 |
| Day of the week | Day is Saturday or Sunday |
| Date | Date is between … and … |
Cart attributes
| Condition | Example |
| Cart attribute | Cart attribute "…" is any of |
| Compare two values | Cart attribute "…" is different from the shipping address line 1 |
Operators
Numbers and amounts
is greater than · is at least · is less than · is at most · is exactly · is not · is not a multiple of. Money is in your store currency and converted for other currencies.
Text
is any of · is none of · contains any of · contains none of · starts with any of · starts with none of · ends with any of · matches pattern · is longer than (characters) · is empty · is not empty. Matching ignores letter case and surrounding spaces; postal codes also ignore inner spaces. Patterns are case-insensitive regular expressions without lookarounds or backreferences.
Customer tags
has any of · has all of · has none of.
Product filters
Product conditions select cart lines by product tag, collection, specific products or variants, vendor, product type, SKU or gift card. A line matches when it matches any selected criterion.
Where messages appear
Top of checkout · Email field · Phone field · Address line 1 · Address line 2 · City field · Company field · ZIP / postal code field · State / province field · Country field.