microtuts

Change WooCommerce “No Shipping Method” Message

You probably want to change this message:

No shipping methods were found; please recalculate your shipping or continue to checkout and enter your full address to see if there is shipping available to your location.

You can override it in the template.  If you’ve never overwritten a WooCommerce template here how:

WooCommerce will naturally use your themes version of this file over it’s own.  Doing this should be fairly safe against future updates (much safer than editing the plugin files themselves).


Creating your first programming language is easier than you think.

Understanding how a programming language works is a surefire way to be a better developer. Read more.


Suggested Reading


written by Ryan Bosinger
Ryan is a web developer living and working in Banff Alberta. He also writes for giftsforpeoplewitheverything.com and freefoley.com.

4 Responses to “Change WooCommerce “No Shipping Method” Message”

  1. Lee says:

    Perfect! Thank you!

    This is EXACTLY what I needed!

  2. alex says:

    Hi,
    Any idea how we could “disable” the PLACE ORDER button if there is no available shipping method?

    regards,

  3. padraic says:

    Instead of editing the template file you could use a function to change this message. It’s a translation function, so using the following in functions.php will work.

    function change_text( $translated, $original, $domain ) {
    if( $translated == ‘There are no shipping methods available. Please double check your address, or contact us if you need any help.’ && $domain == ‘woocommerce’ ) {

    $translated = __( ‘Enter new message here.’, ‘woocommerce’ );
    }

    return $translated;
    }
    add_filter( ‘gettext’, ‘change_text’, 10, 3 );

  4. Love when I find the exact answer I needed, clearly written out with all the pertinent details. You’re the best.

Leave a Reply