From 6f4f289c7e940592fb12ac373370bb407bb93248 Mon Sep 17 00:00:00 2001 From: Hector Tolmo Date: Tue, 6 Jan 2015 22:24:23 -0300 Subject: [PATCH] Update class-wc-countries.php State = Region validate Chile line 667 and postcode null --- includes/class-wc-countries.php | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/includes/class-wc-countries.php b/includes/class-wc-countries.php index 2c4ea0925c0..b8432591c81 100644 --- a/includes/class-wc-countries.php +++ b/includes/class-wc-countries.php @@ -379,6 +379,7 @@ class WC_Countries { 'BE' => $postcode_before_city, 'CA' => "{company}\n{name}\n{address_1}\n{address_2}\n{city} {state} {postcode}\n{country}", 'CH' => $postcode_before_city, + 'CL' => "{company}\n{name}\n{address_1}\n{address_2}\n{state}\n{city}", 'CN' => "{country} {postcode}\n{state}, {city}, {address_2}, {address_1}\n{company}\n{name}", 'CZ' => $postcode_before_city, 'DE' => $postcode_before_city, @@ -660,10 +661,14 @@ class WC_Countries { ), 'CL' => array( 'city' => array( - 'required' => false, + 'required' => true, ), 'state' => array( - 'label' => __( 'Municipality', 'woocommerce' ), + 'label' => __( 'Region', 'woocommerce' ), + 'postcode' => array( + 'required' => false, + 'hidden' => true + ) ) ), 'CN' => array( @@ -960,4 +965,4 @@ class WC_Countries { // Return return $address_fields; } -} \ No newline at end of file +}