Sushinet

How to Preview a Checkout Rule Before It Goes Live on Shopify

See exactly what a checkout rule would do to a real buyer before it's live — pick a test shopper, cart and address, and watch the outcome, instead of guessing and hoping.

feature-tutorial

The most expensive checkout rule is the one that's almost right. A rule that blocks the wrong addresses, hides a shipping rate a day early, or turns away a customer it shouldn't doesn't announce itself — it quietly costs you orders you never see. The safe way to add a rule is to watch what it does to a real buyer before a real buyer ever meets it. This guide covers why Shopify makes that hard, and how to preview a rule on a test shopper first.

Why you can't preview a native Shopify rule

Shopify's supported way to change checkout behaviour is a validation function — code you write and deploy with the Shopify CLI. It's a genuine, first-class capability, and for a store with a developer it's the right primitive. But it has no rehearsal step.

You deploy the function, and then you wait for real checkouts to tell you whether you got it right. There's no way to say "show me what this specific buyer, with this cart, shipping to this address, would experience" before it's live. The first signal that a rule is wrong is usually an order you meant to block slipping through, or a support ticket from a customer who got blocked when they shouldn't have been. You're debugging in production, on real buyers.

That's a bad place to test anything — and checkout is the worst place of all, because every mistake is a lost or broken sale.

The differentiator: run the rule on a test shopper first

Most rule apps make you guess. You write the rule, flip it on, and hope your mental model of "who this catches" matches reality. Ruleproof is built the other way around: you preview the rule against a test shopper — a stand-in buyer with a cart and a shipping address — and see the exact outcome before anything is live.

To make that immediate, Ruleproof ships seven ready-made test shoppers covering the cases most rules care about: a plain retail buyer, a wholesale account, a PO-box address, an international order, and more. You pick a shopper, pick a cart and address, and see precisely what that buyer would get at checkout — blocked, allowed, a rate hidden, a message shown. On a paid plan you can also save your own test shoppers, so the exact customer or address you're worried about becomes a case you can re-check any time.

This is the part that turns "I think this rule is right" into "I watched it do the right thing." Testing the wholesale buyer with a PO box, the international cart, the express order to a remote postcode — each is a specific preview, not a hope.

Why previewing is safe

A preview runs against test data and shows a future state: "here is what this buyer would see at checkout." Nothing is placed, nothing is charged, and no real shopper is affected. Your live store carries on exactly as before while you rehearse. Because it never touches a real customer, you can preview as many times as you like, tweak the rule, and preview again until the outcome matches what you intended.

Preview first, then watch, then go live

Previewing on a test shopper is the first of two safety steps. Once a preview looks right, you can put the rule in monitor mode — where it evaluates live checkouts but changes nothing — to build confidence on your real traffic before it acts. Preview answers "does this rule do the right thing for this buyer?"; monitor answers "does it behave the way I expect across everyone?" Together they mean a rule only ever goes live after you've seen it work.

If you'd rather see a rule work before you trust it — instead of deploying code and hoping — that's exactly what Ruleproof is built to do, and it's how every rule in the checkout-rules guides is meant to be shipped. Preview it, watch it, then let it run.

Do this without touching code

Ruleproof builds every rule on this page as a plain sentence, previews it on a test shopper, and watches it against your real orders before it changes one — then switches on.

Questions

Can I preview a Shopify checkout rule before customers see it?

Not with native Shopify tools. A checkout validation function — Shopify's own supported way to write custom checkout logic — has no rehearsal step built in: you write it, deploy it with the CLI, and it's immediately live, acting on real buyers from that moment. There's no way to ask Shopify's native tooling 'show me what this specific buyer would experience' before that deployment happens. Ruleproof works differently: it lets you preview a rule against a test shopper first — pick who's checking out, what's sitting in their cart, and where the order would ship — and see the exact, specific outcome the rule would produce for that scenario, before a single real buyer ever encounters the rule in its live form. That gap, rehearsal versus none, is the core difference between testing a rule safely and testing it by watching what happens to real customers.

What is a test shopper?

A test shopper is a stand-in buyer — a customer profile, a cart full of specific products, and a shipping address — that you run a rule against purely to see what would happen, without any of it being a real order or touching a real customer. Ruleproof ships seven ready-made test shoppers covering the situations most checkout rules actually care about: a plain retail buyer, a wholesale account, a PO-box address, an international order, and several more common variations. Having them ready-made matters because it means you can check the common cases immediately, the moment you write a rule, without first having to construct a realistic-looking fake buyer from scratch. On a paid plan you can also save your own custom test shoppers, so the exact edge case you're personally worried about becomes a case you can re-check instantly, any time you touch the rule again.

Does previewing a rule affect real orders or real customers?

No. A preview runs entirely against test data you've chosen yourself and shows a hypothetical future state — 'here's what this specific buyer would see if they checked out right now' — without touching anything real in the process. Nothing is placed as an actual order, nothing is charged to any payment method, and no genuine shopper's checkout experience is affected in any way, because the preview never actually reaches your live storefront's checkout at all; it's a simulation run against the rule's logic using the test data you supplied. Because it's fundamentally incapable of touching a real order, it's entirely safe to preview as many times as you want, tweaking the rule slightly between each attempt and re-running the preview immediately, without any risk of accidentally affecting a genuine customer or creating a real transaction you'd then have to clean up afterward.

Why does previewing matter more for checkout rules than for other apps?

Because a checkout rule sits at the single most consequential moment in a customer's entire journey — the point where they've already decided to buy and are trying to actually complete the purchase — and a rule that's wrong there doesn't announce itself the way a broken product page or a slow-loading image would. A rule that's an hour off on its schedule, matches slightly the wrong set of addresses, or blocks a customer it was never meant to catch costs you sales you genuinely never see happen, because the buyer simply leaves rather than filing a complaint about a checkout that quietly turned them away. Previewing the exact outcome on a specific test shopper is how you catch that mismatch between what you intended and what the rule actually does before it's live, rather than discovering it later from a support ticket, or never discovering it at all.

Can I preview a rule for a specific customer or address I'm worried about?

Yes. Set the test shopper's cart contents and shipping address to match the exact case you're genuinely unsure about — the wholesale buyer checking out with a PO box address, the international cart shipping somewhere your courier has limited coverage, the express order going to a remote postcode that might not actually qualify — and see precisely what the rule does for that specific, real-world scenario before you ever switch it on for actual customers. That's usually far more useful than testing only the obvious, generic case, because the situations that actually break a checkout rule tend to be exactly these less-common combinations that are easy to overlook when you're writing the rule in the abstract but obvious in hindsight once a real customer hits them. Previewing the specific edge case you're already worried about turns a vague concern into a concrete, checkable answer before it costs you a real order.

Related guides

Ready to try it?

Ruleproof builds every rule on this page as a plain sentence, previews it on a test shopper, and watches it against your real orders before it changes one — then switches on.

← All checkout rule guides · See what Ruleproof does