Removed States from Puerto Rico and better address formatting

This commit is contained in:
Claudio Sanches 2020-06-04 17:18:17 -03:00
parent 0265e027ef
commit 418896ea86
2 changed files with 8 additions and 0 deletions

View File

@ -1062,6 +1062,7 @@ return array(
'SD' => __( 'Sindh', 'woocommerce' ),
),
'PL' => array(),
'PR' => array(),
'PT' => array(),
'PY' => array( // Paraguay states.
'PY-ASU' => __( 'Asunción', 'woocommerce' ),

View File

@ -527,6 +527,7 @@ class WC_Countries {
'NZ' => "{name}\n{company}\n{address_1}\n{address_2}\n{city} {postcode}\n{country}",
'NO' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}",
'PL' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}",
'PR' => "{company}\n{name}\n{address_1} {address_2}\n{city} {postcode}\n{country}",
'PT' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}",
'SK' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}",
'RS' => "{name}\n{company}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}",
@ -1149,6 +1150,12 @@ class WC_Countries {
'required' => false,
),
),
'PR' => array(
'state' => array(
'required' => false,
'hidden' => true,
),
),
'PT' => array(
'state' => array(
'required' => false,