Run these tests before OrderRules goes live, or before a launch day that depends on it. Each one takes a minute or two. Skip the groups for rules you don't use.
Agencies: copy the tables into a spreadsheet, add Pass / Fail, Date, Tester and Theme columns, and keep it with the client's handover notes.
Before you start
- Where: a development store or a test product on the live store. Shopify's test gateway lets you pay with card number 1 on a development store.
- Small limits: set limits you can hit in a few orders, such as a daily cap of 2, a maximum of 2 per customer and 2 orders per delivery date.
- Two customer accounts and one logged-out browser window, for the per-customer tests.
- Browser developer tools open on the Network tab. A failed
/cart/add.js request with your message in it means the rule worked and the theme didn't show it. See validation error not showing.
Test orders count like real ones. Cancel them when you're done.
Setup (all plans)
| # | Test | How | Expected |
|---|
| 1 | OrderRules is enabled | Open the OrderRules dashboard | No "setup mode" banner. If you see it, click Enable OrderRules |
| 2 | Checkout rules are on | Shopify Settings β Checkout β Checkout rules | OrderRules limits is on. If you use delivery dates, OrderRules delivery dates is on too |
| 3 | Storefront embed is on | Theme editor β App embeds | The OrderRules embed is on and the banner shows on the storefront. It also refreshes open/closed status and resets after midnight |
Store hours and holidays (all plans)
| # | Test | How | Expected |
|---|
| 4 | Closed outside hours | Set today's hours to end an hour ago, then add to cart and go to checkout | Your closed message; add to cart and checkout are both blocked |
| 5 | Open inside hours | Set hours that include now and place an order | The order goes through |
| 6 | Overnight window | If you use one (say 18:00β02:00), order just after midnight | The order goes through; it's still inside the window |
| 7 | Holiday or special date | Add today as a closed special date in Calendar | Checkout is blocked with the closed message; your weekly hours don't apply that day |
| 8 | Time zone | Check Settings β Time zone | Your city's zone, not UTC. Opening and closing match your local clock |
Order caps (daily cap free; weekly and monthly on Pro)
| # | Test | How | Expected |
|---|
| 9 | Daily cap | Set a daily cap of 2 and place 2 orders | The third checkout is blocked with your limit message |
| 10 | Reset | Check after midnight in your time zone, after a storefront visit | Checkout opens again |
| 11 | Cancel releases | Cancel one of the 2 orders | One more order can go through |
Product rules (3 product limits free; minimums, steps and more limits on Pro)
| # | Test | How | Expected |
|---|
| 12 | Shared product cap | Cap a product at 2 a day; buy 1 as customer A, then 2 as customer B | Customer B is blocked: the cap is shared by all shoppers |
| 13 | Minimum quantity | Set a minimum of 6; add 2 | Blocked with the minimum message, on add to cart and at checkout |
| 14 | Step quantity | Set a step of 6; try 7, then 12 | 7 is blocked; 12 goes through |
| 15 | Collection limit | Limit a collection; go over it with two different products from it | Blocked with the collection message |
| 16 | Message shows on your theme | Repeat test 13 from a collection page quick-add and from the cart drawer | Your message shows. If you see only "Sold out" or nothing, the theme is hiding the error |
| 17 | Which message wins | Close the store and put 2 units of the minimum-6 product in the cart | Only the closed message shows. The minimum message appears after the store opens |
Per-customer limits (Pro)
| # | Test | How | Expected |
|---|
| 18 | Guests are blocked | Logged out, go to checkout | The log-in message; guest checkout is blocked while customer limits are on |
| 19 | Limit across orders | Allow 2 per customer; as customer A, order 2, then try 1 more | The second order is blocked; customer B can still buy |
| 20 | Spend cap is soft | Set a spend cap below one order's total | That order goes through; the next one is blocked |
| 21 | Cancel gives the allowance back | Cancel customer A's order, then try again | Customer A can order again. A refund alone doesn't release it |
| 22 | Second account | Order as customer B to the same address as A | It goes through. Limits count accounts, not people, so review drop orders by address |
Delivery dates and pickup (Advanced)
| # | Test | How | Expected |
|---|
| 23 | Date required | On a date-required product, go to checkout without a date | Checkout asks for a date and blocks until one is chosen |
| 24 | Cutoff | Order just before and just after your cutoff | The earliest date moves forward at the cutoff, in your store's time zone |
| 25 | Full date or slot | Fill a date (or slot) with 2 test orders | The date can't be picked; a full slot shows (Full) and is disabled |
Also check blackout dates, pickup locations and times, and carrier CSV export if you use them. Test on a development store has the delivery tests in more detail.
Checkout surfaces (all plans)
| # | Test | How | Expected |
|---|
| 26 | Buy it now | Repeat a blocking test (9, 13 or 19) with Buy it now on the product page | Blocked, same message. On a date-required product, the button waits for a date |
| 27 | Shop Pay and wallets | Repeat it with Shop Pay, and Apple Pay or Google Pay if you offer them | Blocked, same message |
| 28 | Checkout link or headless | If you use checkout links, a headless storefront or the Shop app, repeat it there | Blocked. Headless storefronts show the limit with their own front end |
| 29 | Large cart | Put 40 or more different products in the cart and break one rule | Still blocked. Large carts are where Functions run out of instructions |
| 30 | Orders that skip checkout | If you use POS or subscriptions, place one POS order or check a renewal | Not blocked, but counted toward your limits |
Clean up
- Cancel the test orders. Cancelling releases delivery capacity, order counts and customer usage. Refunds and order edits don't.
- Set your real limits and messages.
- Place one real, low-value order on the live store before a busy day, with the button customers use most.
If any test fails, work through rules not applying, then contact support with the test number, the time and a screenshot.