How change “no available shipping methods” message in woocommerce : WordPress


Hello Friends,

I hope you are you doing well.

I am here again going to share some useful knowledge regarding to woocommerce shipping information.

If you want to change “No Shipping Method Available” then you will need no need to edit in plugin core files. Just add given below code into your theme function files and set your own custom message that you want to publish on shipping section.

 

add_filter( 'woocommerce_no_shipping_available_html', 'my_custom_no_shipping_message' );

add_filter( 'woocommerce_no_shipping_available_html', 'my_custom_no_shipping_message' );

add_filter( 'woocommerce_cart_no_shipping_available_html', 'my_custom_no_shipping_message' );

function my_custom_no_shipping_message( $message )
{
return __( 'A minimum of 6 products is required. Add more products to complete your purchase' );
}

 

Enjoy Code!

Advertisements

Sr. Software Engineer

Tagged with: ,
Posted in woocommerce, Wordpress

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: