How to Hide Shipping Info on WooCommerce? (Remove shipping methods)

Contents
how to hide shipping info on woocommerce | Hide other shipping methods when free shipping is available | WooCommerce remove shipping from cart | WooCommerce remove shipping from checkout | Hide shipping method WooCommerce programmatically
Contents

Knowing how to hide shipping info on WooCommerce can simplify the checkout process, reduce customer confusion, and improve conversions.

Whether you sell digital products, offer local pickup, or have unique requirements, hiding shipping info can be achieved in just a few steps. Let’s explore how in WooCommerce remove shipping from checkout.

 

How to Hide Shipping Info on WooCommerce? (4 methods)

There are several ways to hide shipping info on WooCommerce, ranging from simple settings changes to custom coding. Choose the method that best matches your technical skills and store requirements.

 

1. WooCommerce disable shipping for certain products (Beginner-Friendly)

WooCommerce allows you to mark products as Virtual, which automatically removes the shipping section during checkout.

  1. Go to your WordPress dashboard.
  2. Navigate to the Products tab in your WordPress dashboard.
  3. Select a product and click Edit.
  4. In the Product Data section, check the box labeled Virtual.
  5. Save your changes.

Now, the shipping section won’t appear for this product.

how to hide shipping info on woocommerce | WooCommerce disable shipping for certain products

 

2. Using Shipping Zones to Limit Display

Another approach is to configure shipping zones to restrict shipping options:

  1. Go to WooCommerce > Settings > Shipping.
    Using Shipping Zones to Limit Display
  2. Create specific shipping zones or leave certain zones empty.
  3. Disable shipping methods for zones where it isn’t needed.

Using Shipping Zones to Limit Display

 

3. Remove Shipping From Cart & Checkout With Plugins (Easy & Flexible)

A plugin is the simplest and most reliable solution for those looking to remove shipping from cart and checkout without diving into code. One excellent free option is the Hide Shipping Method for WooCommerce plugin, which allows you to control when and where shipping methods appear.

This plugin makes it easy to hide shipping methods based on various conditions, such as the contents of a customer’s cart, specific shipping zones, or the presence of free shipping.

 

Steps to Use the Plugin

  1. Install the Plugin
    • Go to your WordPress Dashboard.
    • Navigate to Plugins > Add New.
    • Search for “Hide Shipping Method for WooCommerce” and click Install Now.
    • After installation, click Activate.
  2. Configure Plugin Settings
    • Navigate to WooCommerce > Hide Shipping
    • Set up rules for hiding shipping methods.
  3. Save and Test
    • Once your rules are configured, click Save Settings.
    • Test your checkout process to ensure the shipping information is hidden as intended.

Hiding Shipping Info with a Plugin

This plugin is a straightforward solution for those who want a professional, no-hassle way to manage shipping visibility on their WooCommerce store.

 

4. Hide shipping method WooCommerce programmatically (Advanced Users)

If your requirements are highly specific, such as hiding shipping methods based on user roles or order totals, custom code can provide the flexibility you need. Using code snippets, you can implement advanced rules tailored to your WooCommerce store. Below, you’ll find examples and their corresponding codes for two scenarios.

 

Example 1: Hide Shipping Methods for a Specific User Role

Suppose you want to hide shipping options for users with the role Wholesale. This is achievable with a simple code snippet added to your theme’s functions.php file.


add_filter('woocommerce_package_rates', 'hide_shipping_for_wholesale_users', 10, 2);
function hide_shipping_for_wholesale_users($rates, $package) {
if (current_user_can('wholesale')) {
// Remove all shipping methods for wholesale users
$rates = array();
}
return $rates;
}

 

Example 2: Hide Shipping Methods for Orders Below €100

If you want to hide shipping options for orders with a total value of less than €100, use the following snippet:

add_filter('woocommerce_package_rates', 'hide_shipping_for_low_orders', 10, 2);
function hide_shipping_for_low_orders($rates, $package) {
$cart_total = WC()->cart->get_subtotal();
if ($cart_total < 100) {
// Remove all shipping methods
$rates = array();
}
return $rates;
}

 

Steps to Add Custom Code

  1. Accessing Theme Editor (If Available)
    • Log in to your WordPress admin panel.
    • Navigate to Appearance > Theme File Editor.
    • Open the functions.php file of your active theme.
    • Paste the code snippet at the end of the file.
    • Save your changes.
  2. Using File Manager (If Theme Editor is Disabled)
    Some security plugins may remove the Theme Editor menu for enhanced site protection. If this is the case:

    • Log in to your hosting control panel.
    • Open the File Manager.
    • Navigate to public_html/wp-content/themes/.
    • Open your theme folder (or child theme folder if you’re using one).
    • Locate the functions.php file and open it in the editor provided by your hosting panel.
    • Paste the code snippet at the end of the file.
    • Save the file.
  3. Using FTP (Advanced Users)
    Alternatively, you can use an FTP client like FileZilla:
    for more detail, you can check Set Up an FTP Client (Optional)

    • Connect to your website using your FTP credentials.
    • Go to wp-content/themes/ and open your active theme folder.
    • Download the functions.php file to your computer.
    • Edit the file with a code editor (e.g., Notepad++ or VS Code).
    • Add the code snippet and save the file.
    • Upload the modified functions.php file back to the same directory via FTP.

Notes:

  • Always back up your website or the file you are editing.
  • If you’re editing directly via the File Manager or FTP, double-check the syntax to avoid breaking your site.
  • Consider using a child theme for modifications to ensure your changes persist after theme updates.

 

Troubleshooting Common Issues

  • Shipping Info Still Appears:
    • Clear your website cache.
    • Check for conflicts between plugins and themes.
  • Customer Confusion:
    • Add explanatory notes on the checkout page, such as “Shipping is not required for this product.”

 

How to hide other shipping methods when free shipping is available?

Hide other shipping methods when free shipping is available requires custom coding. It is essential to analyze your specific needs and then implement this customization through tailored code.

However, if you lack the expertise and need this customization, you can contact our support team through the bottom-right corner of the page. Our team will help implement the customization based on your requirements.

 

Why Hide Shipping Info on WooCommerce?

Enhancing Customer Experience

Simplifying the checkout process can significantly improve user satisfaction. If your product or service doesn’t involve shipping, unnecessary fields during checkout can confuse customers or cause frustration. You can create a smoother and more intuitive purchasing journey by hiding shipping info.

 

Relevant Scenarios

Here are some situations where hiding shipping info makes sense:

  • Digital Products or Services: No physical delivery is required for downloads or online courses.
  • Local Pickup: If customers pick up their purchases in person, shipping details are redundant.
  • Specialized Products: Some items may involve direct delivery without traditional shipping.

 

Conclusion

Learning how to hide shipping info on WooCommerce is a valuable way to tailor your store to meet specific business needs. Simplifying the checkout process can enhance the customer experience, reduce friction, and potentially boost sales.

Whether you prefer using WooCommerce’s built-in settings, a user-friendly plugin, or custom code, there’s a solution to match your store’s requirements. After implementing your changes, remember to test thoroughly to ensure everything runs smoothly and provides a seamless experience for your customers.

If you need any customizations for WooCommerce, our WooCommerce experts are here to help you quickly. Feel free to reach out to us via our online chat.

WooCommerce Customization Setup & Configuration

Got Questions or Ideas? Let’s Chat in the Comments!

Leave a Reply

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

Sales Notification

Show real purchases, build trust, and inspire more sales.

Low Stock Notification

Create urgency and drive quick decisions with scarcity.

Fake Sales Notification

Boost credibility with simulated sales notifications for new stores.

Discount Notification

Highlight offers to grab attention and increase purchases.

Custom Message Notification

Engage visitors with personalized promotions or updates.

Get WooNotif Lite for Free!

Enter your email to receive the download link and installation guide for WooNotif Lite.

[gravityform id="3" title="true"]

Get Notifal Pro with a 38% discount!

Claim Your Discount