How do I create a delivery rule?
On this page
A rule has Conditions (when it applies) and one Action (what should happen at checkout). Rules run inside Shopify checkout through Shopify Functions, on every Shopify plan, without theme changes.
Create the rule
-
Open Rules and click Add rule. (To start from a ready-made rule, click Add from EU preset instead; see Use EU presets.)
-
Under Rule, enter a Name. Only you see this name.
-
Under Conditions, click Add condition and pick a Condition type:
- Products in the cart: Product tag, Collection, Product type, Vendor, SKU. Under Match, choose Any item has one of, Every item has one of or No item has any of. A SKU ending in
*matches every SKU that starts with it. - Cart: Cart subtotal, Total weight (with a Weight unit) and Item quantity, each with a Minimum, a Maximum or both.
- Address: Country (two-letter codes such as
DE), Region or province (codes such asES-GC), Postcode (see Postcode lists, prefixes and ranges), Address line (PO box, parcel locker or no house number; see Stop deliveries to PO boxes and parcel lockers). - Customer: Customer tag, Customer login (the buyer is logged in / is not logged in), B2B company (leave the company names empty to match any B2B company).
- When: Day of the week, Date (a period that repeats every year) and Time of day, in your store’s time zone. See Hide a delivery option by day, date or cut-off time.
With no conditions, the rule applies to every checkout.
- Products in the cart: Product tag, Collection, Product type, Vendor, SKU. Under Match, choose Any item has one of, Every item has one of or No item has any of. A SKU ending in
-
Under Apply the rule when, choose All conditions match or Any condition matches.
-
Under Action, choose What should happen:
- Hide delivery options
- Rename delivery options: write the New title per language.
{title}keeps the current title, for example{title} (2–4 days). - Move delivery options: Move to the Top of the list, the Bottom of the list or A position (1 is the first option shown).
- Block checkout: see Block checkout and buyer messages.
-
For hide, rename and move, choose Which delivery options: tick Delivery methods (Shipping, Local delivery, Pickup and others; leave all unticked to include every method) and/or set Title to Title contains or Title is exactly with a Title text such as
Express. Titles are compared without letter case. If your shipping rate names are translated for other languages, the buyer may see a different title, so prefer Delivery methods when that matters. -
Turn on Switched on when the rule is ready, and click Save.
The Summary box shows the rule in plain words (“When all of these are true: … Then: …”) while you edit.
Turn the functions on
Rules reach checkout only when their function is on. On the Rules page, under Checkout functions:
- Delivery options hides, renames and reorders delivery options.
- Checkout blocks stops checkout with a message in the buyer’s language.
- Time and address rules runs the hide rules that check the day, date, time of day or address line.
Click Turn on for each one you use. After that, saving rules updates checkout automatically. If a function shows Needs update, click Update checkout.
Order, switching off and copies
- Rules run from the top of the list down. Use the move up and move down actions in the list to change the Priority.
- Every matching rule hides its options; for renames and moves the higher rule wins. Every matching block rule adds its message.
- Shopify requires the cheapest shipping rate to be the first shipping rate offered, so a move never puts a dearer shipping rate ahead of it. Pickup and local delivery options can still move to the top.
- Use the On switch in the list to stop a rule without deleting it.
- Duplicate a rule to start a similar one. The copy starts switched off.
Check before buyers see it
Open Simulator and enter a cart and an address. You see which rules match and what checkout would show. See Test rules in the simulator.
Good to know
- The app does not change shipping prices. It works on the delivery options your shipping settings already offer.
- The app is free. Each store can have up to 200 rules. Shopify also limits functions (for example up to 100 product tags, customer tags and collections each, and a processing budget per checkout). The Rules page shows how many different items a cart can hold while your rules are still checked (typically about 110 to 150; fewer tags and collections raise it) and warns you when that drops below 100. Bigger carts show every delivery option and are not blocked unless you chose otherwise in Settings › Checkout blocks.