On this page
Shopify can't exclude individual postcodes from a shipping zone, so an address you can't serve still gets your normal rates. With a postcode shipping app, put those postcodes in a region that has no rates and remove any Shopify rates from the same zone. Checkout then shows no shipping option for those addresses, while everyone else still sees your rates.
Three ways to refuse an address
| What you want | How to set it up in Postcode Shipping |
|---|---|
| Never ship to a list of postcodes | Create a region that matches those postcodes and add no rates to it |
| Ship to a range except a few postcodes | Match the range, then add the few postcodes as exclusion rules |
| Only ship to a set area | Create regions for the area you serve and don't add a catch-all region |
The same approach works for whole countries: if a country isn't in any of your shipping zones, the app returns no rates for it.
Steps
- List the postcodes you can't serve. Use ranges for numeric postcodes, such as
0800-0899, and wildcards for UK or Canadian formats, such asZE1 *-ZE3 *orX0A *. - Create a region called No delivery inside the country's shipping zone and paste the rules into its match field.
- Leave the region without rates.
- Remove Shopify's own rates from the same Shopify shipping zones. Any rate you created in Shopify before installing the app still shows to every address in the zone.
- Edit the checkout message so customers know why. In your theme's default theme content, search for rates and change the no rates for cart or destination text.
- Test a blocked and an allowed address in the Sandbox.
Block PO boxes
Couriers often can't deliver to PO boxes. Add these as exclusion rules on each region:
address_1:[po box]
address_2:[po box]
If you use a catch-all region, create a separate region with those two lines as match rules and no rates instead.
Block some products, not the whole order
For items you can only deliver locally, such as frozen food or bulky furniture, use product groups. Put the restricted items in a group, then add a rate rule so the national rate only appears when the cart has no items from that group. Customers outside your area can still buy everything else.
When Shopify's local delivery is enough
If you deliver orders yourself from a shop or warehouse, Shopify's local delivery already accepts a list of postal codes or a radius. It doesn't block courier shipping to other addresses, though, so you still need the steps above if some postcodes should get no option at all.
For pricing by postcode rather than blocking, see Shopify shipping rates by postcode and remote area surcharges.
Frequently asked questions
Can Shopify exclude a postcode from a shipping zone?
No. Shopify zones include whole countries or states and provinces. To refuse specific postcodes you need an app that decides rates by postcode, or you limit those products to local delivery.
Why does checkout still show a rate for a blocked postcode?
Usually because a Shopify rate you created earlier is still in the same zone. Delete those rates under Settings > Shipping and delivery so only the app's rates apply.
Can I block PO box addresses?
Yes. In Postcode Shipping, add address_1:[po box] and address_2:[po box] as exclusion rules on each region, or as match rules on a region with no rates.
Can I block only some products for some postcodes?
Yes. Use product groups and rate rules so a rate only appears when the cart has no items from the restricted group, for example frozen or bulky items outside your delivery area.
Can I change the message customers see when there is no rate?
Yes. In Shopify, open your theme's default theme content, search for rates, and edit the no rates for cart or destination notice.
