Show the right 'no shipping availalbe' message when a country doesn't have a state.

This commit is contained in:
JeroenSormani 2015-08-18 07:37:46 +02:00
parent c00239fbef
commit 922226e280
1 changed files with 1 additions and 1 deletions

View File

@ -52,7 +52,7 @@ if ( ! defined( 'ABSPATH' ) ) {
<?php endif; ?>
<?php elseif ( ! WC()->customer->get_shipping_state() || ! WC()->customer->get_shipping_postcode() ) : ?>
<?php elseif ( ( ! empty( WC()->countries->get_states( WC()->customer->get_shipping_country() ) ) && ! WC()->customer->get_shipping_state() ) || ! WC()->customer->get_shipping_postcode() ) : ?>
<?php if ( is_cart() && get_option( 'woocommerce_enable_shipping_calc' ) === 'yes' ) : ?>