Created
November 3, 2020 11:40
-
-
Save utopianfool/f48ad220b42630065bf09eafcc18e61d to your computer and use it in GitHub Desktop.
Woocommerce change no shipping message in cart and checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Change shipping message in cart and checkout | |
*/ | |
add_filter( 'woocommerce_no_shipping_available_html', 'littleargentina_no_shipping_message' ); | |
add_filter( 'woocommerce_cart_no_shipping_available_html', 'littleargentina_no_shipping_message' ); | |
function littleargentina_no_shipping_message( $message ) { | |
return __( 'We only ship to the UK. Please select "Deliver to a different address" if you are purchasing from outside the UK' ); | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment