WooCommerce Shipping

Change the message for customers from abroad from “There are no shipping methods available” to “Contact us to get a shipping quote”.

add_filter( 'woocommerce_no_shipping_available_html', 'condless_customize_default_message' );
add_filter( 'woocommerce_cart_no_shipping_available_html', 'condless_customize_default_message' );
function condless_customize_default_message( $wpautop ) {
	if ( WC()->countries->get_base_country() != WC()->customer->get_shipping_country() ) {
		$wpautop = __( 'Contact us to get a shipping quote' );
	return $wpautop;

Set up minimum payment for purchase with shipping, write in the shipping settings Cost field (replace 350 with relevant value):

350 - [fee percent="100" max_fee="350"]

Leave a Reply

Your email address will not be published. Required fields are marked *