Home Contact Us Payments SC Commerce SC Commerce Docs SC Commerce Snippets

Simply Computing

We make websites. Simple.

Modify the ‘no shipping available’ message

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', 'sc_woo_custom_no_shipping_message');
add_filter('woocommerce_cart_no_shipping_available_html', 'sc_woo_custom_no_shipping_message');

function sc_woo_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