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

charliezl on "[Plugin: WooCommerce - excelling eCommerce] Unable to checkout in Portugal-gives "State / County is a required field." Error"

$
0
0

I have found the permanent fix for this. It seems to be the developer's error for leaving Portugal out of the main countries array. Simplly add this piece of code

'PT' => array(
	'state'	=> array(
	'required' => false
      ),
),

to the get_country_locale() function of the class-wc-countries.php in woocommerce classes folder.


Viewing all articles
Browse latest Browse all 102102

Trending Articles