Support » Plugin: WooCommerce » Calculate shipping rename

  • Resolved pantsman28


    Does anyone have function.php code to rename ‘Calculate Shipping’ on the basket page?
    I thought it may have been this.

    add_filter( 'woocommerce_shipping_calculator_name', 'custom_shipping_calculator_name' );
    function custom_shipping_calculator_name( $name ) {
      return 'Calculate next day delivery';

    but this doesn’t work?

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter pantsman28


    found it `function fix_woocommerce_strings( $translated, $text, $domain ) {

    // STRING 1
    $translated = str_ireplace( ‘Calculate Shipping’, ‘Calculate next day delivery’, $translated );

    return $translated;

    add_filter( ‘gettext’, ‘fix_woocommerce_strings’, 999, 3 );


    Plugin Support EtienneP a11n


    Thanks for letting us know you found the solution!

    I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Calculate shipping rename’ is closed to new replies.