How to Restrict WooCommerce Shipping by Postcode (6 Easy Steps)

Do you want to restrict WooCommerce shipping by postal code or zip code? 

If yes, this is the article for you. Here, we will discuss restrictions in WooCommerce shipping, why we need it, and how you can restrict shipping based on the zip code. 

WooCommerce has had a whopping success in the past few years, making it the king of eCommerce. 

It occupies 92% of the market share, making it the most popular eCommerce plugin for WordPress. And that’s not it; various other plugins are developed to support WooCommerce. 

When setting up your WooCommerce store, you must pay great attention to the shipping address and their availability, restricting areas where you can’t ship the product. 

What better way to do it than restricting through postcode?

This article will teach us to restrict WooCommerce shipping based on the postal code/zip code. We will also take an overview of why it is essential to determine. 

So, let’s get started!

Why Restrict WooCommerce Shipping?

eStore is available worldwide, making it easy for customers to purchase a good. But the shipping options to all over the place might be limited.  

While WooCommerce allows you to restrict shipping to specific countries, it doesn’t allow the restriction by postal code. To do so, you require many lines of custom code and the hiring of a developer, which can be very difficult. 

In the alternative, you’ve Conditional Shipping & Payments plugin by Woosuite that helps you restrict the shipping based on zip code. The plugin offers a payment gateway and shipping restriction methods on your WooCommerce site. 

How To Restrict WooCommerce Shipping Based on Postal Code / Zip Code?

To restrict WooCommerce shipping based on postal code, follow these 6 easy steps!

1. Install and Activate the Conditional Shipping and Payment Addon

As a first step, you need to install and activate the Conditional Shipping & Payments plugin. 

Note: If you’ve already installed the plugin, you can skip to the next step. 

The plugin is available with the Woosuite Core plugin. You can install and activate the plugin using the license key. 

We have a detailed tutorial guide on how to get started with the plugin and activate the Conditional Shipping and Payments plugin. 

2.  Navigate to Shipping and Payments

We assume that you’ve installed and activated the plugin on your website. 

Upon activating the plugin, you can see the Woosuite option on the sidebar of your dashboard. 

  • Navigate to Woosuite > Shipping & Payments

3. Select the Shipping Methods Tab

Upon clicking on the Shipping & Payment options, you’ll land on a page with three tabs: Restrictions, Payment Gateways, Shipping Methods, and Shipping Countries. 

  • Select the Shipping Methods tab. 

4. Add a Shipping Restriction by Postal Code

On the Shipping Countries tab:

  • Click on the Add Restriction button.

You can view the option to exclude methods, add a description, and exclude Rate IDs on the page. 

  • Step 4.1: Add a Short Description

Firstly, we need to provide a short description defining the rules we create in the ‘short description’ field. 

You can add an explanation to the description if necessary. 

  • Step 4.2: Exclude Shipping Methods

Upon clicking on the ‘Exclude Methods‘ field, you’ll have to select the shipping methods you want to restrict by postal code. 

  • Step 4.3: Exclude Rate IDs 

You can select the option to exclude the rate IDs or just leave the option blank. 

  • Step 4.4: Add a Condition

Next you want to click the ‘Add Condition’ button, then select Shipping Postcode 

Add the postal code of the places you would like to restrict shipping. 

5. Save Changes

Once you have added the restriction, it’s time to save changes. 

6. Viewing Changes

Now is the time to test the update. 

Visit your store’s checkout page and add the billing state as one of the selected states you restricted earlier. Now when you place the postal code of the place on the page, the shipping is not available. 

Upon clicking on the ‘Place Order’ button, you’ll be notified that you won’t be able to place an order at the specific location. 

Wrapping Up

This is the end of our tutorial guide on How to Restrict WooCommerce Shipping by Postcode. 

The Conditional Shipping & Payments plugin makes it super easy to restrict shipping based on postal codes. 

To enable the features on your website, you can quickly get started with this tutorial guide! You can even use the Conditional field to add an advanced shipping option.


Welcome to the AovUp blog, where we discuss all things WooCommerce. I hope we can help you achieve something today...

Leave a Reply

Your email address will not be published. Required fields are marked *

We – and our partners – use cookies to deliver our services and to show you ads. By using our website, you agree to the use of cookies as described in our Cookie Policy