Change the default cart Message ( no available shipping methods) message

The code facilitates you to change the default cart message – ‘There are no shipping methods available. Please double check your address, or contact us if you need any help’.  With this code, you can customize the message according to your requirement.
Add the following code to your functions.php or anywhere relevant.

In the above code, assign customized message to $custom_msg. If $custom_msg message is empty, then  default message is returned otherwise $custom_msg returned by function.

Customize Cart / Checkout Page “There are no shipping methods available..” message based on Zip Code.

WooCommerce provides filters to customize the default message shown when no shipping methods available. Below code snippet will change the default message to any custom message.



Leave a Reply