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 Conditional Shipping Methods plugin.
The Conditional Shipping Methods plugin is a very useful tool for all those WooCommerce store owners who are very specific when it comes to displaying the shipping method on the cart page. 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
- When free shipping is available
Disable WooCommerce Shipping Method for Certain Products
When you have the Conditional Shipping Methods plugin installed and activated, go to WooCommerce → Shipping → Conditional Shipping Methods. You will see all the rulesets available in the plugin. If it’s your first use of that plugin, you’ll have no rulesets. To add it, just use the Add ruleset button.
On the next page, you have to configure your ruleset.
First, set the Ruleset name. Preferably, it should be self-describing, so you can quickly determine its performance in the future. Then, in the Conditions table, add a new condition. In the When select section, choose the Product option.
Next, you can choose the match for that condition. Conditional Shipping Methods plugin allows you to set it in three ways:
- any of - the Condition will be matched if there is at least 1 product from the selected ones is in the cart or package
- all of - the Condition will be matched if all of the selected products are in the cart or package
- none of - the Condition will be matched if there are no products from the selected ones in the cart or package.
In most cases, you can use any of option.
To complete that condition, you have to add products that will disable the WooCommerce shipping method. Just type the name of your product and select it from a dropdown list. You can add multiple products in the same condition.
This way, that ruleset will be used whenever that product or products appears in the shopping cart.
Now, it’s time to set an action that will be used when the conditions are met. To do that, add a new action using the Add action button, and choose the Disable only selected shipping methods option in the select dropdown.
Then, select shipping methods to disable based on product. The plugin recognizes many types of shipping methods. Both those available in WooCommerce and those added by other plugins like Flexible Shipping. Just like when selecting products, you can choose multiple shipping methods in the same action.
Remember to save the changes. After that, your ruleset that will disable WooCommerce shipping method for certain products will be configured correctly. There's only one thing left to do to activate it in your WooCommerce store. Go back to the Conditional Shipping Methods menu, and check the Turn on/off conditional displaying or hiding the shipping method checkbox. Again, save changes and disable WooCommerce shipping method for certain products.
In the same way, you can disable shipping method for certain Product Tag, Product Category and Shipping Class. To do that, just select different Conditions available in the Conditional Shipping Methods plugin.