Change free shipping text (Free!)
-
Hi, I am trying to change the Free Shipping text that get’s displayed on checkout when shipping is calculated at 0.
I try to do this with a filter:
add_filter( ‘woocommerce_cart_shipping_total’, ‘custom_change_shipping_free’ );
function custom_change_shipping_free( $total ) {
// Change the default free shipping text
$total = __( ‘Free’, ‘woocommerce’ );
return $total;
}But this changes the text to “Free”, even when shipping total is not 0. Can you please help, what am I doing wrong? (I am no expert on PHP) And yes I know you can change the label of the shipping method itself to Free. But this solution is not valid for me.
Kind Regards,
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Change free shipping text (Free!)’ is closed to new replies.