# 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