How to Hide Shipping On the Cart Page

Do you want to hide a shipping method on the WooCommerce cart page? I’ve got you covered. I’ve created a step-by-step guide on hiding a shipping method on the cart page. 

If you run a WooCommerce store globally, you might be working with different shipping companies, like FedEx, Royal Mail, Blue Dart, etc. You also want to use varying shipping services based on different countries, like USA, UK, Canada, etc 

But, don’t know how to? 

In this tutorial, I’ll show you how to hide a shipping method on the cart page. I’ll use the WooCommerce Shipping and Payments Plugin to get the desired results.

I’ll show you each step in detail with the help of screenshots to help you understand the process better. So, continue reading to check out how to hide a shipping method on the WooCommerce cart page. 

Read Also: How to Add WooCommerce Shipping by User Role.

How to Hide a Shipping Method on the Cart Page?

You can hide a shipping method based on different conditions. For example, you can hide a particular shipping method on backorders, cart total, billing country, category, customer role, shipping country, and more. 

However, I’ll show you how to hide a shipping method on the cart page based on the shipping country in this tutorial. 

You can add different shipping options like Royal Mail, FedEx, and others according to your requirements before heading forward. 

Follow the given steps to hide a shipping method on the WooCommerce cart page. 

1. Install Dynamic Shipping and Payments Plugin 

To install the Dynamic Shipping and Payments Plugin, you must install the Woosuite Core plugin and activate your Woosuite license key. We have created a Quick Start Guide to walk you through the installation process. 

2. Navigate to Shipping Methods Setting

In the WordPress Admin Dashboard: Navigate to Woosuite > Dynamic Shipping and Payments > Shipping Methods

Then, click on the ‘Shipping Methods’ option. 

2. Click on the Add Restriction Button

Click on the ‘Add Restriction’ button to create a new shipping restriction rule. 

3. Add a Short Description For Your New Shipping Restriction Rule

Add a short description for your new shipping restriction rule in the ‘Short Description’ field. This is for internal purposes only. 

4. Exclude Other Shipping Methods

Now, exclude the shipping methods you don’t want in a particular country to show. For instance, you want to show FedEx shipping to USA Customers only. So, exclude other shipping options like Royal Mail, Blue Dart, except FedEx. 

So, choose from the given options. 

5. Select ‘Condition’ to ‘Shipping Country’

Select the Shipping Country for which you want to exclude these shipping options, and enable the not-selected ones. 

6. Select ‘Is Not’ From the Options

From the dropdown, select ‘Is Not.’ 

7. Select Shipping Country

Select the shipping country for which you want to exclude these shipping methods, and enable the not-selected ones. 

8. Click on the ‘Add Restriction’ Button

Click on the ‘Add Restriction’ button to create another shipping restriction rule. You will again see the same fields below the previous one. You can see the same in the given image. 

9. Repeat the Same Steps Again

Now, repeat the same steps, from adding a short description to creating conditions. 

10. Click on the ‘Save Changes’ Button

In the end, click on the ‘Save Changes’ button to save all the settings you just made. 

Read Also: How to Create Shipping Discounts in WooCommerce.

How to hide shipping Method with Code:

function woosuite_disable_shipping_calc_on_cart( $show_shipping ) {

    if( is_cart() ) {
        return false;
    }
    return $show_shipping;
}

add_filter( 'woocommerce_cart_ready_to_calc_shipping', 'woosuite_disable_shipping_calc_on_cart', 99 );

Conclusion 

We finally checked out how to hide a shipping method on the cart page. I hope you understood the steps properly and implemented the same on your WooCommerce store. If you faced any issues while creating shipping restrictions, leave a comment or contact Woosuite customer support. Our dedicated customer support team typically replies within 48 hours. 

Ready to Hide a Shipping Method on the Cart Page?
Install the WooCommerce Dynamic Shipping and Payments Plugin today.

Brian
Brian

Welcome to the AovUp blog, where we discuss all things WooCommerce. I hope we can help you achieve something today...

Leave a Reply

Your email address will not be published. Required fields are marked *

We – and our partners – use cookies to deliver our services and to show you ads. By using our website, you agree to the use of cookies as described in our Cookie Policy