---
title: Shipping Methods by City or Postcode For WooCommerce  plugin
description: "## Overview The **WooCommerce Shipping Methods by City or Postcode **plugin allows you to include/exclude cities or postcodes for shipping methods or shipping method instances (i.e. each shipping zone-method combination). The shipping methods will be displayed on your WooCommerce site according to…"
url: "https://booster.io/docs/woocommerce-shipping-methods-by-cities/"
updated: "2025-12-23"
category: "Shipping & Orders"
---

# Shipping Methods by City or Postcode For WooCommerce  plugin

## Overview

The **WooCommerce Shipping Methods by City or Postcode **plugin allows you to include/exclude cities or postcodes for shipping methods or shipping method instances (i.e. each shipping zone-method combination). The shipping methods will be displayed on your WooCommerce site according to these settings only.

The plugin works for shipping methods like flat rate, free shipping, and local pickup.

## Enabling Shipping Methods by City or Postcode for WooCommerce

To enable and use the Shipping Methods by City or Postcode plugin, you should first download and install [Booster for WooCommerce](https://wordpress.org/plugins/woocommerce-jetpack/).

1. **Booster** > **SHIPPING & ORDERS **> **Shipping Methods by City or Postcode**.

The **Shipping Methods by City or Postcode **plugin settings page will be displayed.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-1.png)

1. In the **Shipping Methods by City or Postcode** section, check the box for **Enable **field.
2. Save changes, and expand the plugin’s section to edit its settings.

## Configuring Shipping Methods by City or Postcode in WooCommerce

### General Options

By default, this plugin works for WooCommerce’s 3 default shipping methods, which are Flat Rate, Free Shipping, and Local Pickup.

However, if you wish to configure city-based or postcode-based shipping for your shipping method instances instead of shipping methods, select **Enable **for the **Use Shipping Instances **option.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-2.png)

 

Upon selecting this option, you will be allowed to include and exclude cities/postcodes for each shipping zone and method combination.

For example, if you have 2 shipping zones: **US** (Methods: Free Shipping and Local Pickup) and **UK **(Flat Rate and Free Shipping enabled for your store, then the shipping instances will be:

- US: Free Shipping
- US: Local Pickup
- UK: Flat Rate
- UK: Free Shipping

### By City

To apply shipping methods/instances by city, make sure to select the **Enable Section** for the **Shipping Methods by Cities **option.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-3.png)

Now, enter the cities to include and cities to exclude in the given text areas. Do the same for all shipping methods (local pickup, free shipping, and flat rate) or shipping method instances.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-4.png)

 

Save changes when done.

#### Frontend Example 1: Shipping Methods by Cities (Include City)

In this example, the **Flat Rate** shipping method is enabled for the City of **Boston**.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-5.png)

 

So, when the user sets his **Town/City** as **Boston**, the shipping method **Flat Rate **is applied to his cart.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-6.png)

 

However, if we change the city to **St Louis**, the shipping method cannot be fetched (as we never configured it for this city in our store.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-7.png)

 

#### Frontend Example 2: Shipping Methods by Cities (Exclude City)

Now, let’s set **Flat Rate** as the shipping method for all cities, except for **Kansas**.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-8.png)

 

As you can see, **St Louis** customers will find the shipping method **Flat Rate** applied to their carts in this case.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-9.png)

 

On the other hand, customers from **Kansas** won’t be able to see this shipping method applied to their carts.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-10.png)

### By Postcodes

To apply shipping methods/instances by postcode, make sure to select the **Enable Section** for the **Shipping Methods by Postcodes **option.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-11.png)

Now, enter the pin codes to include and the pin codes to exclude in the given text areas. Do the same for all shipping methods (local pickup, free shipping, and flat rate) or shipping method instances.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-12.png)

Save changes when done.

#### Frontend Example: Shipping Methods by Postcode

Let’s use the following settings to apply the shipping method to our store by postcode:

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-13.png)

 

As expected, the output is as under:

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-14.png)

 

### Advanced Options

Enter the priority of the current plugin’s execution in the **Filter Priority **field. Set a greater value for late execution and a lower value for early execution. This option is useful when you have another plugin, installed on your store, setting city and/or postcode-based shipping rules.

![](https://booster.io/wp-content/uploads/Shipping-Methods-by-City-or-Postcode-15.png)

Save changes.
