Skip to Content

Learn To In Woocommerce Restrict Shipping By State

This content may contain links to products, software and services. Please assume all such links are affiliate links which may result in my earning commissions and fees.

Hey there! Have you ever found yourself scratching your head while trying to figure out how to fine-tune shipping options on your WooCommerce store?

Well, you’re not alone! Navigating the world of eCommerce can be a bit like exploring uncharted territory.

But fear not, my friend, because I’m here to guide you through a critical aspect of running your online store – Woocommerce restrict shipping by state.

In this article, we’re going to simplify this often perplexing concept into easy-to-follow steps. Picture me as your friendly neighbor sharing some valuable tips over a cup of coffee.

We’ll break down the process without overwhelming you with technical jargon or complex instructions.

So, if you’re ready to take your WooCommerce store to the next level by gaining control over your shipping options, keep reading.

Together, we’ll unravel the mysteries of WooCommerce and make managing your store’s shipping a breeze.

If you want to learn more you can read my other articles

WooCommerce Restrict Shipping By Country

How do I restrict products for shipping by country in WooCommerce?

Method #1: Country Restrictions for WooCommerce by Addify

This method offers a comprehensive solution for country-based product restrictions and pricing adjustments. Here’s how to set it up:


  1. Download the .zip file of the Country Restrictions for WooCommerce plugin from your account.
  2. Go to your WordPress Admin Panel.
  3. Click on “Plugins.”
  4. Choose “Add New” and then “Upload Plugin.”
  5. Click “Install Now” and then “Activate.”

Setup and Configuration:

  1. After activation, you’ll find “Country Restrictions” in your WordPress admin panel. Hover over it to access settings.
  2. This plugin allows bulk visibility settings and multiple rule creation. You can hide products or prices and add an “Add to Cart” button for specific countries.
  3. When creating rules for product and category restrictions, provide a rule title for reference, specify countries, and choose whether to restrict products.
  4. You can show or hide products, select individual products, categories, or product tags, and configure a restriction message type.
  5. Additionally, you can redirect customers to an internal page, a custom URL, or display a custom message.
Learn To In Woocommerce Restrict Shipping By State 1

Payment Methods:

From the “Payment Method Settings” section, you can choose to show or hide individual payment methods based on your users’ GEO location.

WooCommerce Restrict Shipping By Country 1

General Settings:

  1. Go to “Country Restrictions.”
  2. Open “Settings.”
  3. Click on “General Settings.”
  4. This setting allows you to configure visibility options for countries without specific restrictions.
  5. You can choose to hide all products, which hides the entire catalog for everyone. Alternatively, you can display all products and then choose to hide specific products based on country restriction rules or individual product settings.
  6. You can also customize the custom message that appears in case of a restriction.

Method #2: Apply Country Restrictions Programmatically

This method involves code-based implementation for country-based restrictions. Here’s how:

  1. Open the WordPress Admin Panel > Appearance > Theme Editor.
  2. Download the Functions.php theme file to edit.
  3. Create a separate panel called “Region Settings” on your product/category’s add/edit page in General Settings.
  4. Within “Region Settings,” you can set “Restriction” to either “Allow” or “Deny” and specify the regions.
  5. Add the provided code into your theme’s functions.php file to display fields and save fields.
  6. Add the code to your template.php file for conditional execution of the setting.

Method #3: Default WooCommerce Settings

For a more straightforward approach, you can use the default settings in WooCommerce for country-based restrictions:

  1. Open the WooCommerce Admin Panel.
  2. Go to “Settings” and then select “General.”
  3. Under “Selling Location,” choose “Store Address” and set it to “All Countries.”
  4. Select the countries from the dropdown menu to restrict products or categories.

For shipping restrictions:

  1. Visit the WooCommerce Admin Panel.
  2. Open “Settings” and then select “General.”
  3. Under “Shipping Location,” select either “Ship to All Countries You Sell To” or “Ship to Specific Countries Only.” Choose countries based on your requirements.

While the default settings are more straightforward, they apply restrictions sitewide, affecting all products and categories.

In summary, these methods offer varying degrees of customization and complexity. Choosing the right one for your WooCommerce store depends on your specific needs.

The Country Restrictions for WooCommerce plugin by Addify provides a comprehensive solution with advanced features, while the default settings offer a more straightforward approach.

Consider your store’s requirements and technical expertise when deciding which method to implement.

Check out my other articles for woocommerce

WooCommerce restrict shipping by state

Restricting shipping by state in WooCommerce can be a crucial step, especially for local businesses looking to serve specific regions.

However, it might seem like a daunting task, especially if you’re not tech-savvy.

But fear not, we’ve got you covered with a step-by-step guide on how to achieve this without any custom code, thanks to the Conditional Shipping & Payments plugin by Woosuite.

What is Meant by Restrict Shipping By State in WooCommerce?

First, let’s clarify what it means to restrict shipping by state. Essentially, it involves limiting your sales and shipping to specific states within a country.

This feature is particularly valuable for local businesses looking to serve only specific regions.

Imagine you have a local store, and you want to sell your products exclusively to a handful of states while preventing users from other states from placing orders.

Without the proper setup, customers from all over the country can place orders in WooCommerce, leading to potential order cancellations and reputation issues.

To avoid such complications, it’s essential to restrict shipping by state in WooCommerce, ensuring that you only sell to the states you’ve selected.

Customers from other states won’t be able to place orders, streamlining your operations and enhancing the user experience.

Now, let’s jump right into the tutorial on how to make this happen.

How to Restrict Shipping By the State in WooCommerce?

Good news – you don’t need to be a technical expert to restrict shipping by state in WooCommerce. Follow these straightforward steps to achieve your goal without any custom code.

1. Install and Activate the Conditional Shipping and Payment Plugin

If you haven’t already, begin by installing and activating the Conditional Shipping and Payments plugin. Note that you can skip this step if you’ve already installed and activated the plugin.

Ensure you’ve also installed the Woosuite Core plugin and activated it using your license key. Refer to the Quick Start Guide for installation and activation assistance.

2. Navigate to Shipping & Payments

Once you’ve installed and activated the plugin, go to your WordPress admin dashboard and navigate to “Woosuite » Shipping & Payments.”

WooCommerce Restrict Shipping By Country 2

3. Click the Shipping Countries Tab

Within the plugin’s settings, click on the “Shipping Countries” tab. This is where you’ll set up the shipping restriction by state to limit shipping in WooCommerce.

WooCommerce Restrict Shipping By Country 3

4. Add a Shipping Restriction by State

To add a shipping restriction by state, click the “Add Restriction” button.

This action will create a new rule that you can customize to meet your requirements, preventing users from selected states from placing orders on your store.

  1. Add a Short Description: In the “Short Description” field, provide a brief description of the rule you’re creating. While not mandatory, this description can be helpful if you’re managing multiple rules.
  2. Select the Countries : From the “Excluded Countries” dropdown, select the countries for which you want to restrict shipping by state. You can choose multiple countries here. These selected countries will be excluded from shipping, preventing users from these regions from placing orders. For example, you can choose “United States” if you want to restrict shipping to specific states within the USA.
  3. Exclude the States: Next, from the “Exclude States/Regions” dropdown, select the specific states within the country you chose in the previous step. Keep in mind that users from these selected states won’t be able to place orders on your site. You can handpick the states you want to exclude, allowing orders from others to proceed smoothly.
  4. Add a Custom Note: In the “Custom Note” field, you can add a personalized message that will appear to users when they attempt to place an order from the restricted states. You can leave it blank if you prefer to use the default notice. Feel free to customize this note according to your needs.

Additionally, you can add conditions from the “Conditions” dropdown to create advanced restrictions.

For instance, you can add conditions based on the “Cart total” to apply shipping restrictions by state only when specific cart total conditions are met.

However, for this tutorial, we won’t add any conditions, but you can explore this feature as per your requirements.

5. Save Changes

Once you’ve configured the shipping restriction, click the green “Save Changes” button at the top right corner of your screen. This step saves your settings and applies the restriction rules.

6. Final Results

Now, let’s put your rule to the test. Visit your store’s checkout page and specify a billing state that matches one of the selected restricted states.

When you attempt to place an order, you’ll notice a notice appearing at the top of the page, and you won’t be able to proceed with the order.

Woocommerce Countries List

In your journey to restrict shipping by state in WooCommerce, understanding how to manage the list of countries available in your WooCommerce settings is a vital step.

It lays the foundation for applying location-based restrictions effectively. Let’s dive into managing your WooCommerce countries list:

Accessing WooCommerce Countries List:

To begin, you need to access your WooCommerce countries list. Here’s how:

  1. WordPress Admin Panel: Log in to your WordPress admin panel, the hub of your WooCommerce store.
  1. WooCommerce Settings: Navigate to the WooCommerce settings, which can typically be found in the left-hand menu of your admin dashboard.
  1. General Settings: Within the WooCommerce settings, click on “General” to access the general settings for your store.
  1. Selling Location: In the “General” settings tab, locate the “Selling Location” option. This is where you can configure the countries you want to sell to.

Configuring Your Countries List:

Now that you’ve accessed the selling location settings, you have two primary options for configuring your countries list:

Option 1: Storewide Access

  • All Countries: If you want to make your products available to customers from all countries, simply select “All Countries.” This setting ensures that your products can be accessed by customers worldwide without any restrictions.

Option 2: Selective Access

  • Specific Countries: To restrict your products to specific countries, choose “Specific Countries Only.” Once selected, a list of available countries will appear below.

Adding and Removing Countries:

  • Adding Countries: In the list of available countries, you can add the countries where you want to offer your products. Simply check the boxes next to the countries you wish to include.
  • Removing Countries: Conversely, if you want to exclude certain countries, uncheck the boxes next to those countries in the list. This action ensures that customers from the deselected countries won’t be able to access your products.

Customizing the User Experience:

By configuring your WooCommerce countries list, you’re customizing the user experience for customers visiting your store.

Those in the selected countries will be able to browse, order, and checkout, while customers from non-selected countries won’t see your products or have the option to place orders.

Finalizing Your Changes:

Once you’ve configured your WooCommerce countries list according to your preferences, remember to click the “Save changes” button at the bottom of the “General” settings page.

This ensures that your settings take effect and that your shipping restrictions by state and country are applied as intended.

Understanding and managing your WooCommerce countries list is a fundamental aspect of creating a tailored shopping experience for your customers.

Whether you aim to sell globally or serve specific regions, this setting allows you to define the geographic scope of your online store.

With your countries list in place, you’ll be well-prepared to implement precise shipping restrictions and offer a seamless shopping experience to your customers based on their location.

Check out my other articles for How To Add Extra Field In Woocommerce Checkout Form?

WooCommerce Shipping Options At Checkout

When it comes to running a successful online store with WooCommerce, providing a smooth and convenient checkout process is paramount.

Part of that process involves offering various shipping options to cater to your customers’ needs.

In this section, we’ll explore how to enable shipping on WooCommerce checkout, add different shipping options, understand the available shipping choices, calculate shipping costs based on the cart total, and add new shipping methods.

How Do I Enable Shipping on WooCommerce Checkout?

Enabling shipping on WooCommerce checkout is a fundamental step in ensuring that customers can receive their orders. Here’s how you can do it:

  1. Access WooCommerce Settings: Log in to your WordPress admin panel and navigate to the WooCommerce settings.
  1. General Settings: In the WooCommerce settings, go to the “General” tab.
  1. Selling Location: Find the “Selling Location” section. Here, you can specify where you want to sell your products.
  1. Shipping Location: Select either “Ship to all countries you sell to” or “Ship to specific countries only,” depending on your business model.
  1. Save Changes: Don’t forget to save your changes. Enabling shipping on WooCommerce checkout is often as simple as specifying your selling location.

How Do I Add Different Shipping Options in WooCommerce?

Offering a variety of shipping options can enhance your customers’ shopping experience. To add different shipping options in WooCommerce, follow these steps:

  1. WooCommerce Settings: Access the WooCommerce settings from your WordPress admin panel.
  1. Shipping Settings: Navigate to the “Shipping” tab.
  1. Shipping Zones: You can set up different shipping zones based on geographic regions. Click on “Add shipping zone” to create a new zone.
  1. Shipping Methods: Within each shipping zone, you can add various shipping methods, such as flat rate, free shipping, or custom methods provided by shipping carriers.
  1. Configure Shipping Methods: Customize each shipping method’s settings, including cost, availability, and other specific parameters.
  1. Save Changes: Remember to save your settings for each shipping method you add.

What Are the Shipping Options in WooCommerce?

WooCommerce provides several default shipping options, each catering to different scenarios:

  • Flat Rate: You can charge a fixed rate for shipping based on factors like location or order size.
  • Free Shipping: Offer free shipping for specific products, zones, or as a promotional deal.
  • Local Pickup: Allow customers to pick up their orders directly from your physical store.
  • Table Rate Shipping: Set up complex shipping rules based on multiple conditions, such as weight, quantity, or destination.
  • Custom Shipping Methods: Integrate with third-party shipping carriers or create custom methods to meet your specific needs.

WooCommerce Shipping Cost Based on Cart Total

You can also calculate shipping costs based on the cart total, which is a useful strategy for adjusting shipping rates to align with order values.

To do this, you can use the “Table Rate Shipping” method mentioned earlier and set conditions based on cart totals.

WooCommerce Add Shipping Method

Adding a new shipping method to WooCommerce can be necessary when you want to provide unique options to your customers. Here’s how you can add a shipping method:

  1. WooCommerce Settings: Begin by accessing the WooCommerce settings.
  1. Shipping Settings: Go to the “Shipping” tab.
  1. Shipping Zones: Choose the appropriate shipping zone where you want to add the new shipping method.
  1. Add Shipping Method: Click on the “Add shipping method” button within the selected zone.
  1. Configure the Method: Customize the settings for your new shipping method, specifying details such as shipping cost, availability, and any other relevant parameters.
  1. Save Changes: Be sure to save your new shipping method configuration.

By following these steps, you can expand your list of available shipping methods and provide your customers with even more choices during checkout.

This flexibility can lead to increased customer satisfaction and improved conversion rates.

In conclusion, understanding and effectively managing WooCommerce shipping options at checkout is essential for optimizing your online store’s performance.

Enabling shipping, offering multiple options, and configuring costs based on cart totals can greatly enhance the shopping experience for your customers, making your store more competitive and attractive in the eCommerce landscape.

In the world of eCommerce, providing a seamless and customer-friendly shopping experience is the key to success, and WooCommerce offers a robust platform to achieve just that.

This journey through WooCommerce’s shipping capabilities has shed light on various essential aspects that can significantly impact your online store’s performance like Woocommerce restrict shipping by state.

By enabling shipping on WooCommerce checkout, you open the door for customers around the world to access your products.

Whether you’re selling locally or globally, configuring your selling location is a pivotal step in tailoring your store’s reach.

Adding different shipping options in WooCommerce allows you to cater to diverse customer needs.

From flat-rate shipping to free shipping and custom methods, you have the flexibility to create a shipping strategy that aligns with your business goals.

Understanding the default shipping options, such as flat rate, free shipping, local pickup, table rate shipping, and custom methods, empowers you to make informed decisions about how to deliver products to your customers effectively.

For businesses looking to adapt shipping costs based on cart totals, the table rate shipping method is a valuable tool.

It enables you to set dynamic pricing structures that reflect order values, providing transparency and potentially encouraging larger purchases.

When your store’s needs extend beyond the default offerings, adding a new shipping method is a straightforward process.

This adaptability allows you to stay competitive and responsive to customer demands.

In conclusion, WooCommerce’s comprehensive shipping options at checkout play a crucial role in shaping the success of your online store.

By configuring these options thoughtfully, you can enhance the customer experience, boost conversion rates, and ultimately, grow your eCommerce business.

Remember that a well-tailored shipping strategy can set you apart in a crowded market and leave a lasting impression on your customers, fostering loyalty and driving long-term success.