Lokally is now on the Shopify App Store.Start your 7-day free trial

Restrict Products by Pincode on Shopify

Hide collections from shoppers in the pincodes, cities or states where you can't sell them, from one Shopify store. On Shopify Plus, checkout also stops orders to those pincodes.

What Does Restricting Products by Pincode Mean?

Some products can't go everywhere: perishables that only ship within a city, liquids or fragile items your courier won't take to some areas, or products you're only licensed to sell in certain states. Restricting products by pincode means shoppers in those areas don't see them, and can't order them.

Shopify doesn't do this within a country. Lokally groups pincodes into regions and hides chosen collections for shoppers in a region, based on the pincode they enter.

How Lokally solves this

Hidden Where They Can't Be Delivered

Restricted collections are hidden in storefront browsing, search and collection pages for shoppers in the region, on every Shopify plan.

Shoppers elsewhere see your catalog as normal, so you don't need a separate store for each area.

Checkout Stops Orders to Restricted Pincodes

Where Shopify supports it (confirmed on Shopify Plus), Lokally's checkout validation uses the delivery address. If it's in a restricted region, checkout shows "This product is restricted in your selected region." and the order can't be placed.

Same Regions as Your Prices and COD Rules

The regions you build for restrictions also drive Lokally's regional prices, payment method rules such as hiding COD, and region-specific banners. One pincode list, many rules.

How to set it up

  1. Step 1

    Install Lokally

    Install Lokally from the Shopify App Store and turn on its app embed in your theme. New subscriptions start with a 7-day free trial, billed through Shopify.

  2. Step 2

    Create a region

    Go to Regions and paste the pincodes where you can't sell: one per line, ranges like 800001-800099, or wildcards like 80* for a whole area.

  3. Step 3

    Open Collection Rules

    In Storefront content, open the Collection Rules tab and click New Collection Rule.

  4. Step 4

    Choose regions and collections

    Under Hide in these regions, pick the region. Then pick the collections to hide there.

  5. Step 5

    Save and publish

    Shoppers in that region no longer see those collections on your storefront. On Shopify Plus, checkout also stops the order for a delivery address in the region.

Frequently asked questions

Can Shopify hide products by pincode on its own?

No. Shopify Markets can make products available or unavailable per country, but within one country every shopper sees the same catalog. Hiding products for some pincodes, cities or states needs an app.

Is this a pincode checker?

No. Pincode checker apps show a delivery yes/no or a delivery date on the product page. Lokally hides whole collections from shoppers in the regions you choose, so they don't see products you can't sell there. If you mainly need delivery dates, use a pincode checker app.

Does it need Shopify Plus?

Hiding collections on the storefront (browsing, search and collection pages) works on every Shopify plan. Stopping checkout for a delivery address in a restricted region works where Shopify supports it, confirmed on Shopify Plus.

Can I restrict a single product?

Rules work on collections. To restrict a few products, put them in their own collection, for example an automated collection that matches a product tag, and restrict that collection.

What happens for a pincode that isn't in any region?

Nothing is hidden. Shoppers whose pincode isn't in a region see your full catalog, and checkout isn't stopped.

How does Lokally know the shopper's pincode?

Shoppers enter their pincode in Lokally's popup or widget, or use their device location, and Lokally remembers it on that device. Where checkout blocking is supported, checkout uses the pincode of the delivery address.

Start Restricting Products by Pincode

7-day free trial. Billed through Shopify, cancel anytime.