WooCommerce is a powerful and dynamic eCommerce plugin allowing you to add different shipping methods easily. But if you want to hide a shipping method for a certain product. It provides no way to do so.
There can be several reasons you want to disable a shipping method for a certain product. For example: You may sell products that are prohibited by certain courier companies so in that case, you would want to hide that shipping method for certain products.
So In today’s article, I’ll explain the step-by-step process to disable the shipping methods for certain products using Conditional Shipping & Payments plugin. You can follow this tutorial to get to the final results.
So without any further ado, let’s jump into the tutorial.
How to Disable the Shipping Methods for Certain Products?
To disable the shipping methods for certain products in WooCommerce, you don’t need to be technically an expert. You can follow the steps to disable the shipping methods for specific products without using the custom code.
1. Install and Activate the Conditional Shipping and Payment Plugin
Note: You can skip this step if you have already installed and activated the Conditional Shipping and Payments plugin.
To install the Conditional Shipping and Payments plugin, you will need to install the Woosuite Core plugin and activate it with the help of a license key. We have created a Quick Start Guide for you to figure out how to install and activate the Conditional Shipping and Payments plugin.
2. Edit the Product
Once the plugin is installed and activated, navigate to the Products » All Products from your WordPress admin dashboard.
2.1. Edit the Product
Once you are in the products section, you’ll see all the products you have added to your store.
Now edit the product for which you want to disable a shipping method. To edit the product, hover over your mouse to the product and click the ‘Edit’ button.
Note: If you want to add global shipping restrictions, you can follow the Restrict Shipping tutorial.
3. Add a Restriction Rule For the Product
Once you click the edit button, you’ll be redirected to the ‘Product Edit Page’ where you can edit the product title, description, gallery, etc.
Now scroll to the ‘Product Data’ section, and click the ‘Restrictions’ tab from the left options window.
3.1. Add a Restriction to Disable the Shipping Methods
Now, from the dropdown, you’ll get three types of restrictions that you can add.
- Payment Gateways
- Shipping Methods
- Shipping Countries & States
Select the ‘Shipping Methods’ restriction type from the dropdown and click the ‘Add’ button to add a new restriction.
4. Disable the Shipping Methods for Certain Products
After that, a new rule will add from which you can disable the shipping methods for specific products. It is up to you if you want to disable all the shipping methods or a specific shipping method for the product.
I’ll be disabling the specific shipping method for this product.
4.1. Add a Short Description of the Field
In the ‘Short Description’ field, enter a short description of the rule. It is for internal purposes only and won’t be displayed on the front end.
It will help you to identify the restriction in case you have added multiple restrictions.
4.2. Disable the Shipping Methods
Select the shipping methods you want to disable for this specific product from the ‘Exclude Methods‘ field.
Depending on your choice, you can select all the methods or certain ones.
5. Update the Product
Once you have selected the shipping methods from the field, scroll above and click the blue ‘Update’ button to update the product.
6. Final Results
Now, let’s test the restriction.
To test it, I first added the product to my cart without adding the above restriction rule to see the available shipping methods.
As you can see in the screenshot that all the methods are available.
But now, when I added the rule to disable the shipping method and revisited the cart page, you can see the results that the shipping method is disabled for the product.
If you add any other product to the cart, you’ll be able to see all the available shipping methods because we have disabled the flat rate shipping method for a certain product.
Wrapping Up
That’s it for today’s article.
Now you know how to disable the shipping method for certain products. It is the easiest method to do so. Also, you don’t need any technical experience to achieve the final results.
The Conditional Shipping & Payments plugin makes it very easy to add different types of payment and shipping method restrictions, like Disable Payment Gateways for Specific Products and Set Up WooCommerce Role-Based Payment Methods.
Ready to get started? Download the Conditional Shipping & Payments now!