Hi there -
We wanted to modify the message received on the cart when shipping can not be calculated. We found this post, https://theme.co/apex/forum/t/x-alert-woocommerce/42607
I tried it on our development site and it worked well.
Three questions.
First, if we want to modify the message, do we edit both text areas?
See the two sections between ->>>> <<<<-
if ( is_cart() ) {
return ‘
’ . __( ‘->>>>There doesn‘t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.<<<<-’, ‘x’ ) . ‘
} else {
return ‘
’ . __( ‘->>>>There doesn‘t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.<<<<-’, ‘x’ ) . ‘
’;}
Second, can we include html within the message? For example, make the contact us a hyperlink to the contact us page? On our development site I created a hyperlink and it appeared fine.
Third, is there a code snippet for modifying the message that shipping cant be calculated on checkout page? Currently when shipping cant be calculated checkout provides this message, "There are no shipping options available. Please ensure that your address has been entered correctly, or contact us if you need any help. "
Thanks
Tim