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.
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!
On This Page
- 1 Why Restrict WooCommerce Shipping?
- 2 How To Restrict WooCommerce Shipping Based on Postal Code / Zip Code?
- 3 Wrapping Up
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 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.
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.