@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 '';
}
Thread Starter
andreu
(@andreu)
Sorry @terrytsang, but it didn’t work fine 🙁
Check this screenshot: https://dl.dropboxusercontent.com/u/11189866/free.png
Thank you
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
Thanks a million, just what I needed too!