Test rules

Test rules shows what checkout would do with a cart and buyer you choose. It uses the same code as checkout.

Test rules: Result, Checkout won't complete. The buyer sees: Order at least 4 of Oat Milk Barista Edition. Add 1 more. Below, Only show active rules and a list of five rules with Status, Result and Why; Oat milk: 4 to 40 per order blocks: 3 counted for Oat Milk Barista Edition, minimum 4, maximum 40.
A test result: the message the buyer sees, then each rule's status, result and reason.

Open Test rules

  • From the app's menu, click Test rules. You build the cart and choose the buyer.
  • From a saved rule, click Test this rule. The page is titled Test “rule name”. When it can, the app fills in a cart and buyer that break the rule and runs the test right away. If it can't, a message says why, and you build the cart yourself.

Build a cart

  • Items: add products from your store. Enter prices after product discounts; order discounts don't count toward order amount. If you have a weight rule, each item's weight is shown too.
  • Checkout currency: test a different currency. Enter today's exchange rate in Exchange rate, because Shopify doesn't share its automatic rate with apps. This appears only if your store sells in more than one currency.
  • Buyer: a guest; a logged-in customer, with their tags and whether this is their first order; or a B2B buyer at a company location, with whether this is the location's first order.

Click Run test to see the result. Change the cart or buyer and run the test again to compare.

Read the result

The result starts with what checkout would do:

  • Checkout won't complete. The buyer sees: followed by each message the buyer would get.
  • Checkout goes ahead. The buyer sees no message from your rules.

Below that is a list of every rule. Next to each rule's name are three columns:

  • Status: Active, Off or Paused.
  • Result: Blocks (the cart breaks the rule), Passes (the cart meets the rule) or Doesn't apply (the rule doesn't cover this cart or buyer).
  • Why: what the app counted and the limit it compared it to.

Test rules checks every rule as if it were on, including rules that are off or paused. This lets you test a rule before checkout uses it. To see only what checkout does today, check Only show active rules.

If a cart uses more than 80% of what Shopify allows for one check, a warning appears.

Need help? Contact us and describe what you're trying to do, or the error you see.