A rule tells ZIP Lock which products to watch and which places to block or allow. When an order matches, ZIP Lock stops checkout before the order is placed, so you never have to cancel and refund it. If you'd rather let those orders through, you can choose to show a warning instead. Every rule comes with a default message for customers, and you can customize it if you want.
Create a rule, step by step
In your Shopify admin, go to Apps > ZIP Lock and click Create rule.
Name the rule so you can find it later, like "Dining tables: no Denver delivery". Customers never see the name.
Pick a rule action: Restrict (block the places you list) or Exclusive Zone (only allow the places you list).
Choose products: all products, or just the ones the rule is about.
Choose locations: ZIP or postal codes, states or provinces, or whole countries.
Add conditions if the rule should only apply to some customers or orders. This is optional.
Write the message customers see at checkout. A default message is already there.
Check the Rule summary, turn on Checkout preview, and click Create rule.
The sections below explain each step.
Restrict or Exclusive Zone
The rule action decides what the places on your list mean.
Restrict (default): block the places you list. Everywhere else can still check out.
Exclusive Zone: only allow the places you list. Every other address is blocked.
You want to… | Use | List these places |
Stop dining tables shipping to 80202 | Restrict | 80202 |
Keep a product out of Alaska and Hawaii | Restrict | AK and HI (states) |
Deliver fresh flowers only inside Denver | Exclusive Zone | Your Denver ZIP codes |
Sell a product only in the United States | Exclusive Zone | United States (country) |
Tip: If the list of places you allow is shorter than the list you block, use Exclusive Zone.
Block checkout or just warn?
Under the rule action, choose what happens when an address matches. You'll find the options under Matching locations behavior:
Block checkout (default): the customer can't place the order until they change the address or remove the item.
Show delivery warning only: the order goes through, and the customer sees your message as a warning. Good for setting expectations, like longer delivery times.
With Exclusive Zone, the same choice applies to addresses outside your list instead.
Choose products
Product scope tells the rule which products to watch. If none of them are in the cart, the rule doesn't run, so the rest of your store ships as normal.
Option | What it covers | Good for |
All products | Everything in your store | Store-wide limits, like no orders to Alaska or Hawaii |
Specific products | Up to 100 products you pick | A few items, like four oversized dining tables |
Specific collections | Everything in up to 30 collections | A whole category, like Furniture or Frozen foods |
Specific product tags | Every product with a tag you pick | Items spread across collections, like everything tagged freight-only |
Collections and tags stay up to date on their own. Add a product to the collection, or give it the tag, and the rule covers it without any changes.
When the cart has other items too
If a cart mixes a restricted item with items that can ship, checkout stops until the customer removes the restricted item or changes the address. Unless you've turned off the checkout banner, it names the item, so they know exactly what to remove.
Tip: More than 100 products? Give them a tag, like ship-local-only, and choose Specific product tags.
Choose locations
In the Location card, pick a Target type:
Target type | Use it for |
Specific places (ZIPs / postal codes) | Exact areas, from one ZIP to thousands |
Specific states / provinces | Whole states, like Alaska and Hawaii |
Entire countries | Whole countries |
All addresses (everywhere) | Every address, usually paired with conditions |
For ZIP codes and states or provinces, each rule covers one country. Pick the Country first; the ZIP code box unlocks once you do. To cover another country, make a second rule.
Add exceptions
Sometimes you want a whole state except a few areas. Choose the state, then click + Add "Except" list (ZIP / postal codes). In the ...except these specific ZIP codes box that opens, add the ZIP codes to leave out.
Example: A furniture store can't deliver anywhere in California except near its Los Angeles warehouse. It picks Restrict, chooses California, and lists the Los Angeles ZIP codes as exceptions. Customers in those ZIPs can still check out; the rest of California can't. The Rule summary confirms it, for example: "Checkout is blocked for orders shipping to CA in United States, except ZIP codes 90012, 90013…"
Add ZIP codes: single, ranges, wildcards and spreadsheets
Click Add ZIP codes and type or paste them in. You can mix formats in one rule. There's no limit on how many 5-digit ZIP codes a rule can hold.
Format | Type it like this | What it covers |
One code | 80202 | Only 80202 |
Range | 80203...80206 | 80203, 80204, 80205 and 80206 |
Wildcard | 803* | Every code starting with 803 (80300 to 80399) |
Postal code wildcard | M5V* or SW1* | Every Canadian or UK postal code starting that way |
A few tips
Put three dots between the first and last code of a range, with no spaces.
The * only goes at the end. It means "anything after this".
Separate codes with a comma, or press Enter after each one.
Keep the leading zero on codes like 01001.
Add thousands at once from a spreadsheet
In the ZIP codes section, click More actions > Import spreadsheet.
To swap out every code already in the rule, check Replace all existing ZIP codes first. Leave it unchecked to add the new codes to the list.
Choose or drop a .csv, .xls, .xlsx or .ods file up to 10 MB, with every code in the first column. A header row is fine; it's skipped. Not sure how to lay it out? Click Download an example file, add your codes and upload it.
ZIP Lock imports the file straight away and shows File imported at the top of the page. Save the rule to keep the change.
Tip: Before you replace codes, click More actions > Export spreadsheet to keep a copy of your current list. Excel can drop leading zeros, so format the column as Text before you save the file.
Add conditions (optional)
Without conditions, a rule runs on every order with a matching product and address. Add conditions when it should only apply to some customers or orders. Click + Add condition and choose a type:
Condition type | Lets you check | Example |
Shipping address | PO Box addresses or a specific street address | Block PO Boxes for freight items |
Cart | Cart subtotal or item quantity | Only block orders under $50 |
Customer | Email or customer tags | Only apply the rule to customers tagged Unverified |
B2B | Business (B2B) orders | Apply the rule to retail orders only |
Delivery | Delivery method or shipping option name | Block shipping but allow local pickup |
How conditions work together
Different conditions must ALL be true. A rule with a Customer condition and a Cart condition only runs when both match.
Inside one condition, only ONE value has to match. A Customer tag condition listing Unverified and New-customer matches customers with either tag.
The products and the location work the same way: the rule runs only when the cart has a matching product, the address matches, and every condition is true.
Write your checkout message
Every rule comes with a default message that works for most stores: "One or more items cannot ship here." You don't need to change it, but you can edit it in the Checkout Error Messaging card if you'd like (up to 255 characters).
Where customers see it
Under a checkout field: your message shows right under the field that caused the block. ZIP Lock picks the field for you based on your location and conditions, or you can choose it yourself.
Banner at the top of checkout: lists the items that can't ship, with a heading you can edit. It's on by default, and you can turn it off if you only want the field message. It isn't available when the rule covers All products, so those rules show only the field message.
Both show on express checkouts too, like Shop Pay, Apple Pay and Google Pay.
Check and save your rule
Before you save, check these:
Rule summary says in plain words what the rule will do. If it doesn't match what you meant, fix the cards before saving.
Checkout preview shows your message the way customers will see it.
Rule status: in the Set the rule status card, Active works at checkout as soon as you save. Draft saves the rule without affecting checkout, which is handy while you're still setting it up.
Click Create rule (or Save in the bar at the top). An Active rule starts working right away.
Update a rule
Go to Apps > ZIP Lock and click the rule.
Change any card. To edit ZIP codes, add or remove them in the list, or import a spreadsheet. New codes are added to the list unless you check Replace all existing ZIP codes.
Click Save changes (or Save in the bar at the top). Changes apply at checkout as soon as you save.
Why a rule turned into a draft
In the event you can't save a rule as Active and see the message below, your store has reached Shopify's limit of 25 active checkout rules. That limit is shared with every checkout app on your store, not just ZIP Lock. Your work isn't lost: ZIP Lock still saves the rule, but as a Draft until a slot frees up.
The Set the rule status card also shows 25/25 active rules (limit reached), and the Active option is greyed out until a slot frees up.
To turn the rule on:
Free up a slot. Use the buttons in the banner:
Manage ZIP Lock Rules: set a ZIP Lock rule you don't need to Draft, or delete it.
Open Shopify Checkout Settings: review checkout rules created by other apps and turn off any you don't need.
Open the drafted rule and, in Set the rule status, choose Active.
Click Save changes (or Save in the bar at the top).
Tip: Fewer, broader rules go further. One rule with a wildcard like 803* replaces dozens of single-ZIP rules.
Still stuck? Chat with us or see Examples for ready-made rule ideas.











