Quantcast
Channel: WordPress.org Forums » [WooCommerce] Support
Viewing all articles
Browse latest Browse all 104029

rickgrevatt on "[Plugin: WooCommerce - excelling eCommerce] Checkout form fields have bad positioning"

$
0
0

I tried your fix and must be missing something. I too have the same problem for a site in development. I updated my woocommerce-templae.php as follows

case "country" :

            $field = '<p class="form-row ' . implode( ' ', $args['class'] ) .'" id="' . $key . '_field">';
			$field .= '<label for="' . $key . '" class="' . implode( ' ', $args['label_class'] ) .'">' . $args['label']. $required  . '</label>';
			$field .= '<select name="' . $key . '" id="' . $key . '" class="country_to_state ' . implode( ' ', $args['class'] ) .'">';
			$field .= '<option value="">'.__( 'Select a country&hellip;', 'woocommerce' ) .'</option>';

			foreach ( $woocommerce->countries->get_allowed_countries() as $ckey => $cvalue ) {
				$field .= '<option value="' . $ckey . '" '.selected( $value, $ckey, false ) .'>'.__( $cvalue,

	        }

All I managed to do was break the site. Can you tell me what I am doing wrong please?

Thanks

http://microscanada.onlyhospitality.com/shop/


Viewing all articles
Browse latest Browse all 104029

Trending Articles