X-alert woocommerce

How do I change the actual text

There doesn‘t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.

Hi There,

You have to setup a child theme first: https://theme.co/apex/forum/t/setup-how-to-setup-child-themes/57

After that add this custom code under functions.php file locates in your child theme:

function x_woocommerce_cart_no_shipping_text() {

  if ( is_cart() ) {
    return '<div class="woocommerce-info x-alert x-alert-info x-alert-block"><p>' . __( 'There doesn&lsquo;t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.', '__x__' ) . '</p></div>';
  } else {
    return '<p>' . __( 'There doesn&lsquo;t seem to be any available shipping methods. Please double check your address, or contact us if you need any help.', '__x__' ) . '</p>';
  }

}

add_filter( 'woocommerce_cart_no_shipping_available_html', 'x_woocommerce_cart_no_shipping_text', 99 );

Feel free to change the text in the custom code to yours.

Hope it helps :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.