Skip to content

Commit

Permalink
Show the right 'no shipping availalbe' message when a country doesn't…
Browse files Browse the repository at this point in the history
… have a state.
  • Loading branch information
JeroenSormani committed Aug 18, 2015
1 parent c00239f commit 922226e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion templates/cart/cart-shipping.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@

<?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' ) : ?>

Expand Down

0 comments on commit 922226e

Please sign in to comment.