Show the right 'no shipping availalbe' message when a country doesn't have a state.
This commit is contained in:
parent
c00239fbef
commit
922226e280
|
@ -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' ) : ?>
|
||||
|
||||
|
|
Loading…
Reference in New Issue