countries->get_allowed_countries() as $key=>$value) : echo 'customer->get_shipping_country()==$key) echo 'selected="selected"'; echo '>'.$value.''; endforeach; ?>
customer->get_shipping_country(); $current_r = $woocommerce->customer->get_shipping_state(); $states = $woocommerce->countries->states; if (isset( $states[$current_cc][$current_r] )) : // Dropdown ?> $value) : echo ''.$value.''; endforeach; ?>