WooCommerce - excelling eCommerce
Remove free word in shipping method label (5 posts)

  1. andreu
    Posted 1 year ago #


    I need to remove the (free) word that appears next to the shipping method label in the cart.

    It seems to appear automatically with some kind of filter when a shipping method total cost is 0, but I don't want it to appear. How can I remove it?

    Thank you


  2. terrytsang
    Posted 1 year ago #

    @andreu, you can put below codes in your theme functions.php:

    add_filter( 'woocommerce_variable_free_price_html','remove_free_price_text' );
    add_filter( 'woocommerce_free_price_html','remove_free_price_text' );
    add_filter( 'woocommerce_variation_free_price_html','remove_free_price_text' );
    function remove_free_price_text( $price ) {
      return '';
  3. andreu
    Posted 1 year ago #

    Sorry @terrytsang, but it didn't work fine :(

    Check this screenshot: https://dl.dropboxusercontent.com/u/11189866/free.png

    Thank you

  4. Te Calleja
    Posted 11 months ago #

    The code above is for removing the word "Free!" when your product price is 0.
    To remove the word (Free) in shipping, use this

    add_filter( 'woocommerce_cart_shipping_method_full_label', 'remove_local_pickup_free_label', 10, 2 );
    function remove_local_pickup_free_label($full_label, $method){
        $full_label = str_replace("(Free)","",$full_label);
    return $full_label;

    Found the solution here http://stackoverflow.com/questions/22353854/woocommerce-custom-function-for-free-shipping-label

  5. jenderks
    Posted 9 months ago #

    Thanks a million, just what I needed too!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WooCommerce - excelling eCommerce
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic