diff --git a/readme.txt b/readme.txt index e3a9d95546a19..a1f9295e448e0 100644 --- a/readme.txt +++ b/readme.txt @@ -166,7 +166,7 @@ Yes you can! Join in on our [GitHub repository](http://github.com/woothemes/wooc == Changelog == = X = -* Tweak - Made no shipping available messages filterable via woocommerce_cart_no_shipping_available_html and woocommerce_checkout_no_shipping_available_html +* Tweak - Made no shipping available messages filterable via woocommerce_cart_no_shipping_available_html and woocommerce_no_shipping_available_html = 2.0.4 - 18/03/2013 = * Tweak - Like my account, added order_count attribute to view order shortcode. diff --git a/templates/cart/shipping-methods.php b/templates/cart/shipping-methods.php index d1fa41ca38e17..ce328246a3a60 100644 --- a/templates/cart/shipping-methods.php +++ b/templates/cart/shipping-methods.php @@ -64,12 +64,14 @@ } else { if ( ! $woocommerce->customer->get_shipping_country() || ! $woocommerce->customer->get_shipping_state() || ! $woocommerce->customer->get_shipping_postcode() ) { + echo '
' . __( 'Please fill in your details to see available shipping methods.', 'woocommerce' ) . '
'; + } else { $customer_location = $woocommerce->countries->countries[ $woocommerce->customer->get_shipping_country() ]; - echo apply_filters( 'woocommerce_checkout_no_shipping_available_html', + echo apply_filters( 'woocommerce_no_shipping_available_html', '' . sprintf( __( 'Sorry, it seems that there are no available shipping methods for your location (%s).', 'woocommerce' ) . ' ' . __( 'If you require assistance or wish to make alternate arrangements please contact us.', 'woocommerce' ), $customer_location ) . '
'