Delivery Availability Checker

In Baymard Institute checkout research, 48% of US cart abandoners cited additional costs (shipping, tax, and fees) as too high, and 22% said delivery was too slow. Both complaints share the same underlying cause: the shopper had no idea what delivery would be like until it was too late to care.

Peak days make it all the worse. Online shoppers spent a record $11.8bn on Black Friday alone (Adobe). When you've got traffic spikes like that, every 'we'll get it to you' becomes an abandoned cart or a support ticket, and every COD order that can't be delivered becomes a return.

A postcode check solves both of those problems. This guide shows how to tell the shopper "we deliver here" on the product page and how to restrict COD or certain shipping methods by postcode in Magento 2. We're using MageDelight's Delivery Availability Checker as the example.

The short version

• A postcode checker allows the shopper to enter their postcode on the product page and instantly see whether you deliver there, how long it will take and whether COD is available.

• Behind it, you set your rules per postcode or per range of postcodes: which carriers are available, which payment methods (including COD) are disabled and what message you want to display.

• Do the setup before the rush. Loading the postcodes, writing the messages and testing the edge cases all takes a calm afternoon rather than a busy sales day.

What is a postcode delivery check?

A postcode delivery check is a feature on a product page whereby the customer enters a postcode, and it instantly tells them if the store delivers there. It can also show a delivery time frame, and whether COD is available in that area, so they know before adding anything to the basket.

Why set it up before Black Friday?

• There's no surprise at checkout. If a customer finds out at the final step that you don't deliver to them, then you've lost the sale and some trust. You don't lose anything by telling them on the product page.

• Safer COD. There are some areas you simply can't or don't want to serve for COD. The extension FAQ on restricting COD actually states that admins can choose whether COD is available for a given postcode. Turning it off in that way is cheaper than a failed delivery.

• A lot fewer "do you deliver to me?" messages. At peak times, the support teams are inundated. Having a clear answer on the page removes an entire class of tickets.

• Real demand data. Postcode searches will tell you where people want your products to be available (including places you can't currently serve). More on that below.

What can you control with postcode rules?

Rule

What it does

Example use

Delivery check on product page

Shopper enters a postcode, clicks Check, and sees your success or failure message.

Answers "do you deliver to me?" before add to cart.

Delivery estimate message

Shows a shipping estimate message for a postcode or range.

Sets honest expectations for far areas.

COD check on product

Shows whether COD is available for that postcode, with your own wording.

Stops promising COD where you cannot honor it.

Restrict payment methods by postcode

Removes chosen payment methods for a postcode or range of postcodes.

Blocks COD in areas with delivery risk.

Restrict shipping methods by postcode

Removes chosen shipping methods for a postcode or range.

Hides express shipping where the courier cannot do it.

Availability alert

Emails the shopper when a product becomes available for their postcode.

Captures demand from areas you plan to open.

How to set up postcode checks in Magento 2

Prerequisites

• Magento Open Source / Adobe Commerce / Adobe Commerce Cloud 2.4.7 to 2.4.9

• A clear list from your courier/logistics team of the postcodes you deliver to, which postcodes you can do COD on and which shipping methods are viable in which areas.

• A backup of your files and database prior to you installing anything.

Step by step

1. Write your rules down on paper first. Create three lists: the postcodes you deliver to, the postcodes where COD is allowed and the postcodes where a shipping method is restricted. Most errors happen because people skip that initial step.

2. Install the extension. Follow the user manual. It supports both manual and Composer installation, and there's a separate Hyvä package available for stores on that theme.

3. Switch it on and enter your messages. In the configuration, enable the module and enter the Shipping Unavailability Message and the Estimate Delivery Message. Set Check COD on Product to Yes and then enter the COD Availability and COD Unavailability messages.

4. Load your postcodes. You can import a country's postcodes from the GeoNames postal code files via a command-line import, or upload your own CSV. The admin upload is limited to 1 MB, so for larger files, use the command line and name your CSV file after the country code (e.g., US.csv, IN.csv).

5. Add the restrictions. Go to Delivery Check > Postcode > Manage Postcode. For a single postcode or a range, tick "Is Restrict Payment Method" and select COD to disable it for that area. Tick "Is Restrict Shipping Method" and select the methods you wish to remove for that area.

6. Turn on alerts and reporting. Turn on "Allow alert when product available on postcode" and "Save postcode report" so that you can capture demand from postcodes you don't currently serve.

7. Test as a shopper. Try a postcode you serve, one you don't, one at the edge of the range and one where COD is blocked. Do it on a phone as well and run a test order through to checkout.

Common mistakes

• Vague messages. "Not available" tells the shopper absolutely nothing. Just be honest and tell them what the reality is and what they can do.

• Overlapping ranges. If two rules cover the same postcodes, you could end up with results you didn't intend. Make sure your ranges are clean and check them after every import.

• Blocking COD too widely. Restrict it only where there is a real delivery reason, or you will push away shoppers you can serve.

• Don't just skip local formats. Postcodes vary from country to country. Make sure you test the exact format that your customers will use.

• Leaving test rules live. Clear out the experiments before launch, and export your rules to CSV as a backup.

How should you word the messages?

Plain and friendly beats clever. A few patterns work well:

• Deliverable: "Good news, we deliver to your area. Estimated delivery is 3 to 5 days."

• COD available: "Cash on Delivery is available at this postcode"

• COD is not available: "Cash on delivery is not available here; you can pay by card or bank transfer at checkout."

• Not deliverable: "Sorry we don't deliver here yet. Turn on the alert, and we'll email you when we do."

The COD blocked message does the real work. It explains the limit and gives the shopper an alternative way to buy so the sale doesn't just stop at the block.

Use postcode reports to see demand you cannot serve

The extension maintains three reports: how often each postcode is searched, how many postcode searches there are per product, and how many postcode searches there are for products that aren't available in that postcode. Taken together, they show you exactly where your customers are looking for your products and where you're saying no.

If one unserved area persists, that's a business issue for your logistics partner, not a technical one. A courier might cover it, a store pickup might be the answer. In either case, you'll be making your decision based on data rather than instinct.

A note on fairness and rules

Base your COD and shipping restrictions on delivery feasibility, cost and risk and explain them clearly on the page. Consumer protection and non-discrimination rules vary by country and region, so seek legal advice before publishing any rules that exclude an entire area.

When postcode rules are not enough

Postcode rules cover a lot, but a few cases call for another tool. For broader payment logic, such as limits by customer group or cart value, MageDelight's Payment Restrictions extension fits better. For shipping rules by customer group, store view or day, see the Shipping Restriction FAQ. If shoppers want to choose when an order arrives, Delivery Date handles that. And where you cannot deliver at all, Store Pickup gives those shoppers a way to still buy.

Which setup fits your store?

• You offer COD and have a few risky or unserved areas - use postcode rules to block COD in those areas and have a clear message on the product page.

• You can ship nationwide, but some of the methods only work in certain areas. Restrict those methods by postcode so the customer never sees an option you can't actually deliver with.

• You're only delivering to a limited service area. Put the 'we deliver here' tick on every product page and set up alerts for everything else.

• You ship all over the place using the same methods and no COD at all (you probably don't need to). A standard shipping estimate is sufficient.

If one of the first three describes you, start with the Delivery Availability Checker. It covers the product page check, COD and shipping rules, postcode import and reporting in one extension, and the MageDelight team can help with setup before the rush. The feature overview in this MageDelight post adds more background.

Frequently asked questions

Can I restrict COD for specific postcodes in Magento 2?

Yes. With a delivery availability extension, you can mark COD as unavailable for a single postcode or a range, and that payment option is then removed for shoppers in that area. You can also show a message to explain why.

How do shoppers check if I deliver to them?

They enter their postcode into a box on the product page and click Check. They then see your success/failure message (and optionally a delivery estimate and COD status) before adding the item to the cart.

How do I add thousands of postcodes without typing them?

You can import a country's postcodes from the GeoNames files via a command-line import or upload a CSV. Admin uploads are limited to 1MB, so larger files should be imported via the command line.

Can I restrict shipping methods as well as payment methods?

Yes. For each postcode or range, you can restrict chosen shipping methods and chosen payment methods independently, so you can block express shipping in one area and COD in another.

Can I tell customers when a product reaches their area?

Yes. Turn on the availability alert, and shoppers who searched an unserved postcode can be emailed when the product becomes available there.