# Minimum and maximum order value

> Set a minimum or maximum order value in Shopify checkout with Cart Validator: subtotal or total, one currency per rule, per country and customer.

**Maximum order value** stops checkout when the order is worth more than your limit. **Minimum order value** stops checkout until the order is worth at least your minimum. An order exactly at the limit passes. Both compare the order in the currency the buyer pays in.

## The fields

| Field                                             | What it sets                                                                                                                                                                  |
| ------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Delivery countries**                            | All countries, only some or all except some. See [Rules](/docs/cart-validator/rules#delivery-countries).                                                                      |
| **Highest order value** or **Lowest order value** | The limit, an amount above 0.                                                                                                                                                 |
| **Currency**                                      | The limit's currency. The rule checks only orders in it. The list shows the currencies of your markets; with **Only these countries**, only those of the countries you chose. |
| **Order value**                                   | **Subtotal** or **Total**, see below.                                                                                                                                         |
| **Customers**                                     | All customers, or customers with certain tags. See [Customer tags](/docs/cart-validator/customer-tags).                                                                       |

## Subtotal or total

| Choice       | What counts                                                                  | Where it's checked                                                                     |
| ------------ | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
| **Subtotal** | The products after their own discounts, before order discounts and shipping. | In the cart block and at checkout.                                                     |
| **Total**    | What the buyer pays, with shipping, taxes and discounts.                     | At every checkout step, not in the cart. Shipping counts once the buyer has chosen it. |

A rule on the total can't be checked in the cart, because the cart doesn't know shipping yet. Every rule is checked again when the buyer pays, with the final total.

## Examples

| Goal                                 | Rule                                                                                                                                                                         |
| ------------------------------------ | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Stay under an import threshold       | **Maximum order value** of NZ$1,000 on the **Subtotal**, **Only these countries**: New Zealand. See [Import thresholds per country](/docs/cart-validator/import-thresholds). |
| A minimum order for wholesale buyers | **Minimum order value** of €250 on the **Subtotal**, with **Only customers with one of these tags**: wholesale.                                                              |
| A minimum order for one country      | **Minimum order value** of CHF 50 on the **Subtotal**, **Only these countries**: Switzerland.                                                                                |
| A cap on what the buyer pays         | **Maximum order value** of $2,000 on the **Total**, for **All countries**.                                                                                                   |

## What buyers see

In English, the built-in messages read:

| Rule                | Built-in message                                                                                  |
| ------------------- | ------------------------------------------------------------------------------------------------- |
| Maximum order value | Orders can be at most `{limit}`, and yours is `{amount}`. Please remove some items to continue.   |
| Minimum order value | The minimum order value is `{limit}`, and yours is `{amount}`. Please add more items to continue. |

`{limit}` is your limit and `{amount}` the order's subtotal or total, both in the rule's currency and formatted for the buyer's language, such as NZ$1,000.00 in English or 1.000,00 NZ$ in German. See [Buyer messages](/docs/cart-validator/buyer-messages).