From b753548df348205c914fd12a9442114d03c87acd Mon Sep 17 00:00:00 2001 From: "amit.chauhan" Date: Wed, 24 Oct 2018 18:32:59 +0530 Subject: [PATCH] Fixed woocommerce_localisation_address_formats for country code IN file class-wc-countries.php --- includes/class-wc-countries.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 24f506ce037..fc36362d369 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -470,6 +470,8 @@ class WC_Countries { * * @return array */ + + // removed - for country code IN that was mistakenly written causing wrong pattern generated public function get_address_formats() { if ( empty( $this->address_formats ) ) { $this->address_formats = apply_filters( @@ -490,7 +492,7 @@ class WC_Countries { 'FR' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city_upper}\n{country}", '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}", - 'IN' => "{company}\n{name}\n{address_1}\n{address_2}\n{city} - {postcode}\n{state}, {country}", + 'IN' => "{company}\n{name}\n{address_1}\n{address_2}\n{city} {postcode}\n{state}, {country}", 'IS' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode} {city}\n{country}", 'IT' => "{company}\n{name}\n{address_1}\n{address_2}\n{postcode}\n{city}\n{state_upper}\n{country}", 'JP' => "{postcode}\n{state} {city} {address_1}\n{address_2}\n{company}\n{last_name} {first_name}\n{country}",