Checkout rule actions reference
In short
A rule can hide a payment method, show an error, change the cart or check with your API. When its conditions match, all its actions run, but only if the Rules Executor block is in your checkout.
✓ Applies to
- Deluxe plan only (checkout rules aren't included in Advanced)
- Rules under Rules in the app, run by the Rules Executor block in Shopify Plus checkout
✕ Doesn't apply to
- Custom Block visibility. Blocks use conditions but have no actions
Rule settings
| Setting | What it does | Default |
|---|---|---|
| Title | Your name for it, up to 30 characters. Buyers don’t see it | Empty |
| Status | Only Active rules run | Draft |
| Condition Match Type | All conditions must pass, or Any one | Any |
| Conditions | When it runs. None = always. List | None |
| Actions | What it does | None |
The actions
| Action | Buyer sees | Needs block permission |
|---|---|---|
| Hide payment method | A payment method disappears | No |
| Show Error Message | An error, and can’t continue | Yes |
| Modify Cart: Add Product | A product added | No |
| Modify Cart: Set Product Quantity | A quantity changed | No |
| Validate Via API | Nothing, unless your API returns errors or actions | Yes, for errors |
“Block permission” means you allowed the Rules Executor to block checkout progress in the checkout editor. How.
Hide payment method
- Payment Method name contains: text to match. Not case-sensitive.
- One method per action. Add more actions for more methods.
Show Error Message
- Message: plain text shown to the buyer.
- Position: Top of the checkout, Shipping Address 1 or 2, First Name, Last Name, Email or Phone.
- Email or Phone message not showing by the field? Use Top of the checkout. It still blocks. Guide.
Modify Cart
Add Product (guide):
| Field | What it does | Default |
|---|---|---|
| Product Variant | What to add. Several picked = first one | Empty |
| Quantity | How many. Empty adds 1 | Empty |
| Prevent adding duplicate products | Skip if already in cart | On |
| Limit total quantity in cart | Turns on a cap | Off |
| Maximum quantity allowed | Only add while below this | Empty |
With Prevent adding duplicate products off, the product is added every time the rule runs. Only turn it off with a quantity limit.
Set Product Quantity: pick a Product already in the cart and a Quantity. Empty or 0 sets 1.
Validate Via API
- API URL: your HTTPS endpoint. Gets a
POSTwith JSON. - Input Query: fields to send, like
{ deliveryAddress { zip } }. Empty sends everything. - API Headers: shown but not sent yet.
- Your reply needs an
actionsarray. Items inerrorsblock checkout. - Replies are cached for 5 minutes. Full contract.
Good to know
- Rules load when checkout opens. Only 10 rules are read (drafts count), then drafts are dropped.
- Rules re-check whenever the checkout changes, like cart, address or payment.
- Actions from every matching rule run together.
Frequently asked
Can one rule have several actions? +
Yes. Click Add New Action to add more. They all run when the rule's conditions match.
What happens if two rules match at the same time? +
Both rules' actions run. Error messages from both are shown, and payment methods targeted by either rule are hidden.
What if a rule has no conditions? +
It always applies, so its actions run on every checkout.
Do draft rules run? +
No. Only rules with Status set to Active are loaded by the Rules Executor.