How to Disable WooCommerce Shipping Method for Certain Products

How to Disable WooCommerce Shipping Method for Certain Products
Author Bartosz Gajewski
Reading time:
3 minutes read

Disabling shipping methods for specific products is a useful option for many online stores that sell a diverse assortment. Unfortunately, WooCommerce itself does not offer this option. So in this situation, it is worth reaching for an additional plugin. In this article, I’ll show you step-by-step how to disable the WooCommerce shipping method for certain products using the Flexible Shipping PRO plugin.

The Flexible Shipping PRO plugin is one of the most powerful shipping tools for WooCommerce. Its basic functionality is to set the shipping cost based on numerous conditions, but the plugin will also work great for hiding shipping methods on the cart page. All available conditions for pricing, are also conditions for hiding methods. It allows you to hide shipping methods based on various conditions like:

  • Products (Single Product, Product Category, Product Tag and Shipping Class)
  • Cart or Package Weight
  • Cart or Package Value
  • Day of the Week and Time of the Day
  • Product dimensions
  • User Role

In this article, I will focus how to disable WooCommerce shipping method for certain products. If you want to read about other conditions, take a look at our guide about hiding shipping methods in WooCommerce.

Flexible Shipping PRO WooCommerce £89

The best Table Rate Shipping for WooCommerce. Period. Create shipping rules based on weight, order totals or item count.

Add to cart or View Details
100,000+ Active Installations
Last Updated: 2023-11-16
Works with WooCommerce 7.9 - 8.3.x

Disable WooCommerce Shipping Method for Certain Products

Add Flexible Shipping method

Having the Flexible Shipping PRO plugin installed and activated, go to WooCommerce → Settings → Shipping → Shipping Zones, and choose the Shipping Zone where you want to disable shipping method for certain products. Then, click the Add shipping method button. You’ll find it at the bottom of the shipping methods table:

WooCommerce add shipping method

In the window that will appear, choose the Flexible Shipping from the dropdown list and confirm with Add shipping method button:

add flexible shipping method

Thereafter, you should have your own Flexible Shipping method in your shipping zone:

new flexible shipping method

Click on its name to configure shipping method.

Configure the Flexible Shipping method

In the configuration page, you can enter Method Title, Method Description and use all features of the Flexible Shipping plugin. The most important element, however, is the Shipping Cost Calculation Rules table. You’ll find it on the bottom of the configuration page:

Shipping Cost Calculation Rules table

There, you can set the cost for your shipping method. You can use different conditions to determine shipping cost, but if you want to set flat rate, just use Always. For example, if you intend to charge $10 for shipping, set it like that:

basic shipping method configuration

Select products

Let’s get back to the purpose of this setup, which is disabling WooCommerce shipping method for certain products. To achieve that, all you have to do is to add a new rule with Add rule button and select the proper condition.

flexible shipping PRO conditions

As you can see, you can choose from multiple conditions available in the Flexible Shipping PRO plugin. When it comes to conditions based on products, you have four options:

  • Single Product
  • Product tag
  • Product category
  • Shipping class

For each of them, the implementation method is the same. As an example, I will use a single product feature. To hide WooCommerce shipping method for certain product, select Product from the conditions list. Then a product selection box will appear in the table. It contains all the products created in your store. To add them, enter their name and select a specific product from the list.

select products that will diable shipping method in WooCommerce

You can add multiple products to that list, but in this case, you should use the proper conditional logic operator. You’ll find it just before the product selection field:

FS conditional logic operators

You can use any to hide shipping method if one of the chosen products will appear in the client’s cart. The other option is to use all to hide the shipping method only when all the selected products will appear in the client’s cart at the same time.

Having all the products selected, you can use the most important option in the Shipping Cost Calculation Rules table. Change the Special action to Hide.

Disable WooCommerce Shipping Method for Certain Products

This setting will cause that when the selected product appears in the customer’s shopping cart, this shipping method will stop displaying in the cart and on the order page. Remember to Save changes, and that’s it.

In the same way, you can disable shipping method for certain Product Tag, Product Category and Shipping Class. To achieve that, just select different Conditions available in the Flexible Shipping PRO plugin. 

Notify of
Inline Feedbacks
View all comments
Anjan Phukan
Anjan Phukan
1 year ago

Is it possible to add a percentage rule cost? For example. 20% of the total fee.

Karolina Burnagiel
Karolina Burnagiel
Reply to  Anjan Phukan
1 year ago

Hi Anjan, there is a way how you can add the percentage to the total cost. Please see this screenshot with the rule –comment image. This rule will add 20% extra charge based on the total fee. You can find in our documentation an article about it –

Check out our case studies

Dream Home Story
Furniture shipping via WooCommerce – Dream Home’s Case Study

Learn how to configure custom shipping rules for furniture orders – from heavy and bulky to small and light.

4 minutes read
Vitrek’s Story

Read Octolize Case Study about Vitrek – a provider of innovative global solutions for High Voltage Test and Measurement.

2 minutes read
EnglishSpeakingMum’s Story

Read Octolize Case Study about EnglishSpeakingMum – Polish dedicated and involved parenting blogger.

2 minutes read

Join over 10,000 subscribers

Stay up to date and get WooCommerce tips & Octolize news right to your inbox!