Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save utopianfool/f48ad220b42630065bf09eafcc18e61d to your computer and use it in GitHub Desktop.
Save utopianfool/f48ad220b42630065bf09eafcc18e61d to your computer and use it in GitHub Desktop.
Woocommerce change no shipping message in cart and checkout
<?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