From 922226e2806434eda4461967e825ca54da83be6d Mon Sep 17 00:00:00 2001 From: JeroenSormani Date: Tue, 18 Aug 2015 07:37:46 +0200 Subject: [PATCH] Show the right 'no shipping availalbe' message when a country doesn't have a state. --- templates/cart/cart-shipping.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/cart/cart-shipping.php b/templates/cart/cart-shipping.php index 55c265bfa86..fcda216e5a4 100644 --- a/templates/cart/cart-shipping.php +++ b/templates/cart/cart-shipping.php @@ -52,7 +52,7 @@ if ( ! defined( 'ABSPATH' ) ) { - customer->get_shipping_state() || ! WC()->customer->get_shipping_postcode() ) : ?> + countries->get_states( WC()->customer->get_shipping_country() ) ) && ! WC()->customer->get_shipping_state() ) || ! WC()->customer->get_shipping_postcode() ) : ?>