Created
May 17, 2018 15:46
-
-
Save ara303/1fca86ae5ae52f8ef57402778c7cb19d to your computer and use it in GitHub Desktop.
Change the "No shipping available" error message in WooCommerce
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
function wbsuk_change_no_shipping_error() { | |
return '<div class="no-shipping-text">Your order cannot be completed automatically. Please <a href="contact">contact us</a> and we will confirm a price to ship to you.</div>'; | |
} | |
add_filter( 'woocommerce_cart_no_shipping_available_html', 'wbsuk_change_no_shipping_error' ); | |
add_filter( 'woocommerce_no_shipping_available_html', 'wbsuk_change_no_shipping_error' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment