• Resolved madjedo

    (@madjedo)


    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)
  • Hello,

    This is a fairly complex development topic. I’m going to leave it open for a bit to see if anyone is able to chime in to help you out.

    I can also recommend the WooCommerce Developer Resources Portal for resources on developing for WooCommerce.

    You can also visit the WooCommerce Facebook group or the #developers channel of the WooCommerce Community Slack.

    I don’t do coding but would this work?
    If you used the Table Rate Shipping Plugin and set it on weights – so 1 gram to 26,000 gram the freight charge would come up as $0?

    Hi @witchystitchy

    If you used the Table Rate Shipping Plugin and set it on weights – so 1 gram to 26,000 gram the freight charge would come up as $0?

    Since this is related to our paid plugin, please contact us at?WooCommerce.com > My Account > Support.

    Please kindly note that this particular forum is for questions that are related to the features and functionality of the free WooCommerce core plugin. Discussions about paid extensions need to be done through official support channels.

    Plugin Support Gabriel – a11n

    (@gabrielfuentes)

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Change free shipping text (Free!)’ is closed to new replies.