Improving class-wc-countries.php support for Italy
Applies only to Italy: changing the 'State' description to 'Province', and modifying the way the address is formatted following Italian standards
This commit is contained in:
parent
cde4947acf
commit
f153ffb212
|
@ -576,7 +576,7 @@ class WC_Countries {
|
|||
'HK' => "{company}\n{first_name} {last_name_upper}\n{address_1}\n{address_2}\n{city_upper}\n{state_upper}\n{country}",
|
||||
'HU' => "{name}\n{company}\n{city}\n{address_1}\n{address_2}\n{postcode}\n{country}",
|
||||
'IS' => $postcode_before_city,
|
||||
'IS' => $postcode_before_city,
|
||||
'IT' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city} {state_upper}\n{country}",
|
||||
'LI' => $postcode_before_city,
|
||||
'NL' => $postcode_before_city,
|
||||
'NZ' => "{name}\n{company}\n{address_1}\n{address_2}\n{city} {postcode}\n{country}",
|
||||
|
@ -871,6 +871,13 @@ class WC_Countries {
|
|||
'required' => false
|
||||
)
|
||||
),
|
||||
'IT' => array(
|
||||
'postcode_before_city' => true,
|
||||
'state' => array(
|
||||
'required' => true,
|
||||
'label' => __( 'Province', 'woocommerce' ),
|
||||
)
|
||||
),
|
||||
'KR' => array(
|
||||
'state' => array(
|
||||
'required' => false
|
||||
|
@ -1091,4 +1098,4 @@ class WC_Countries {
|
|||
// Return
|
||||
return $address_fields;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue