When there are no shipping options available, Classic Commerce displays a default code in the cart. You may want to customise this to add extra instructions, or perhaps include a link to a contact page.
/**
* Modify the 'no shipping available' message
*/
add_filter('woocommerce_no_shipping_available_html', 'cc_custom_no_shipping_message');
add_filter('woocommerce_cart_no_shipping_available_html', 'cc_custom_no_shipping_message');
function cc_custom_no_shipping_message($message) {
return __('We are not able to find a shipping option for your location - please <a href="/contact-us/">contact us</a>');
}
View Raw
Code ID: 91040