How to Restrict Delivery by Postal Code for Certain Products on Shopify
A store asked the Shopify Community how to stop one category of products shipping to certain postcodes. What they were told, and what works.

Shopify can’t tie a postal code restriction to certain products on its own. Shipping zones stop at countries and regions, and the checkout rule that can block postal codes applies to every order, whatever is in the cart, as far as Shopify’s help shows. To refuse some postcodes only for certain products, you need an app that reads the cart and the address together at checkout. To warn customers before checkout, the free way is a short note on the product page.
This post starts from a real question on the Shopify Community, as the thread stood in November 2026. The facts about Shopify come from its own help pages.
What did the store owner ask?
In February 2024, a store’s team asked the Shopify Community how to restrict delivery to certain postcodes for one category of products. They needed to switch off shipping to some postcodes, but only for that category. Every app they had found applied it to the whole store, which would have stopped everything else going there too.
The next day they added a second question: could a customer check their postcode before reaching checkout?
Two years and nine months later, the thread has seven replies, that follow-up among them, and no accepted answer. One app’s maker answered the follow-up plainly: no, the check happens at checkout, before the delivery options load.
What were they told, and does it work?
The replies offered four kinds of answer, all of them apps. Nobody mentioned Shopify’s own settings, so those come first.
Shopify’s own settings
Custom shipping profiles let different products have different rates. That covers the product half. The other half is the place, and Shopify describes a shipping zone as a group of countries or regions, not of postal codes.
Local delivery does take a list of postal codes, but it’s set per location, and every physical product in the cart has to be deliverable from that one location. It adds an option for nearby addresses; it doesn’t take shipping away from anyone.
Since 17 June 2026, every store can use the address format validation rule under Settings → Checkout → Checkout rules. It can block or allow postal codes, with wildcards, for shipping addresses. As far as Shopify’s page shows, it applies to every order, not to particular products. If a postcode should be closed for every product, our earlier post covers that case: how to prevent Shopify orders to certain postcodes and regions →.
A shipping rates app with product and postcode conditions
The first two replies suggested apps that work out your rates from conditions such as the products in the cart and the postcode. Offer no rate for a product and a postcode, and the order can’t be completed.
It’s enough if you already want rates that change by product and place. It’s a lot to take on to say no to a few postcodes, because your rates now live in the app. And, as one of their makers said, the check still happens at checkout.
A delivery checker on the product page
A reply in March 2024 suggested an app that sets shipping by postcode and adds a small box to the product or cart page where the customer can check delivery. It’s the thread’s only answer to the second question.
A checker helps the customers who use it. The rest still need a rule at checkout, so it’s an extra, not the fix.
A shipping rules app for a collection
In June 2024, a reply walked through an app that hides the shipping methods you pick when the cart has products from a chosen collection and the address matches a postcode you list. That’s very close to what was asked.
Two details decide whether it fits. Pick every method that could reach those postcodes, or the customer chooses the one you left. And find out what happens to a cart that mixes restricted and other products.
Our app
One of the replies is ours: in December 2024 our team suggested our app. You choose which products a list of postal codes applies to, and for those addresses the delivery options disappear at checkout. Details and limits are below.
What does a real fix need?
Put the thread together and the answer has four parts:
What you need | Why it matters |
|---|---|
A rule that reads the cart and the postcode together | The rest of your catalogue keeps shipping everywhere |
Postcodes matched by area | You type a prefix once, not every code that starts with it |
A clear answer for mixed carts | You know what the customer will see before they do |
A word to customers before checkout | They find out on the product page, not at the last step |
If you’re wondering what these orders cost when nothing stops them, we worked it out in what out-of-area orders really cost a Shopify store →.
How do you restrict delivery by postal code for certain products?
Ultimate Postal Code Blocker is the one we build at msmtech, so we’re not neutral. You make a group of postal or ZIP codes and decide whether it blocks them, which is the default, or allows only them. Then you tell the group to apply only when the cart contains certain products: variants you pick, a product tag or a vendor. There’s no collection option, so if your category is a collection, give its products a tag.
By default a code matches when it starts with what you typed, so one entry covers a whole area. You can also match exactly, use smart matching that ignores spaces and capitals (handy for UK and Canadian codes), or set a number or letter-and-number range.
Carts without those products check out exactly as they do today.
When a restricted product is in the cart and the code matches, the shipping rates and local delivery for that address disappear at checkout. Local pickup and pickup points stay, and you can let named rates through, such as a courier that does reach those postcodes. The customer sees Shopify’s “shipping unavailable” message, which you can reword from the app in each language.
Here is where it stops. With a mixed cart, every delivery option for that address is hidden, not only the restricted product’s: the customer has to remove that product before anything else in the cart can ship there. The message is one for the whole store, not one per group, so word it to cover every case. And the check happens at checkout only: there’s no postcode checker on the product or cart page. For the thread’s second question, a line on the product page naming the areas it can’t go to is the free answer.
It costs USD 8.99 a month, or USD 96.99 a year, with a 30-day free trial, as of November 2026.
Frequently asked questions
Can customers check their postcode before checkout?
Only with an app that adds a checker to the product or cart page. Shopify’s address rule and our app both check at checkout. The free way is a sentence on the product page naming the areas you can’t deliver that product to.
Can I restrict postcodes for a collection instead of a tag?
No, not in our app: a group applies by picked variants, product tags or vendors. Give the products in the collection a shared tag, point the group at that tag, and tag new products as you add them.
Can customers at a restricted postcode still pick up?
Yes. Our app never hides local pickup or pickup points, so a customer at a blocked postcode can still collect the order if you offer pickup. Only shipping rates and local delivery go.