Remove ‘(Free)’ label text for WooCommerce Shipping and Handling

# This is post #2 of 31 in the challenge “Mastering WooCommerce

This snippet show you how to remove (Free) label text for WooCommerce Shipping and Handling section in WooCommerce checkout and cart page.

Currently if the cost of your shipping method is $0, it will display text “(Free)”. But sometimes there is case where you have an option of shipping which is paid by the customer upon pickup or receival, so the value of the shipping for store owner is 0 but is not FREE for customer.

Before

(Free) text at Shipping and Handling row if shipping cost is 0

(Free) text at Shipping and Handling row if shipping cost is 0

In order to fulfill this condition, below code snippet will solve the problem by removing “(Free)” text for Shipping and Handling section for WooCommerce cart and checkout page.

//remove '(Free)' or '(FREE!)' label text on cart page for Shipping and Handling if cost equal to $0
function tt_custom_shipping_free_label( $label ) {
  $label =  str_replace( "(Free)", " ", $label );
  $label =  str_replace( "(FREE!)", " ", $label );

  return $label;
}

add_filter( 'woocommerce_cart_shipping_method_full_label' , 'tt_custom_shipping_free_label' );

You can add above code snippet to end of your theme functions.php file. If you need guide on how to add code into your theme functions, refer this guide.

After

Not more (Free) text at Shipping and Handling row - WooCommerce Checkout

Not more (Free) text at Shipping and Handling row – WooCommerce Checkout

4 Comments

  1. Hi I need to remove the (free) text as above but ONLY on my international shipping option… is this possible? I am using pro shipping plugin by lee willis. I cant just remove all (free) labels as I have a free collection and free shipping method!

    So here is an example of how i want it to look:
    England Zone A: £2.65
    Local Collection: (FREE)
    Customer to arrange international shipping.

    thanks

  2. Hi Terry! I exactly need to do this, but it is not working with the latest WC version 2.4.7, maybe something changed in the code? I am not a coder and I need to fix this issue for my site.

    Could you help me with this?
    I tried this code inside functions.php and usinng the snippets plugin (not at the same time) with no luck.

    Thanks in advance Terry.
    Ps: amazing series to master WooCommerce!

Leave a Comment.