From 1ad87cc99c1594d7fea94219c1673e11fa5197f0 Mon Sep 17 00:00:00 2001 From: kaio-donadelli Date: Tue, 11 Jul 2023 09:29:23 -0300 Subject: [PATCH 1/2] Fix ECU postal code selection to use cities. --- react/country/ECU.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/react/country/ECU.ts b/react/country/ECU.ts index ed6cf419..464433b3 100644 --- a/react/country/ECU.ts +++ b/react/country/ECU.ts @@ -1279,7 +1279,7 @@ const rules: PostalCodeRules = { country: 'ECU', abbr: 'EC', postalCodeFrom: ONE_LEVEL, - postalCodeLevels: ['state'], + postalCodeLevels: ['city'], firstLevelPostalCodes: firstLevelPostalCodes(countryData), fields: [ { From f59878ea1f693a53a81c8a199c1e63ca2850166c Mon Sep 17 00:00:00 2001 From: kaio-donadelli Date: Tue, 10 Oct 2023 09:04:12 -0300 Subject: [PATCH 2/2] Fixed fields displayed for Netherlands customers, in order to better reflect the usual experience for shoppers in that country. --- CHANGELOG.md | 4 ++++ react/country/NLD.ts | 13 +++++++++++-- 2 files changed, 15 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 033e3ca1..e087f21d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Fixed + +- Fields displayed for Netherlands customers, in order to better reflect the usual experience for shoppers in that country. + ## [3.34.7] - 2023-10-09 ### Fixed diff --git a/react/country/NLD.ts b/react/country/NLD.ts index 60dda024..6b2156d8 100644 --- a/react/country/NLD.ts +++ b/react/country/NLD.ts @@ -30,6 +30,14 @@ const rules: PostalCodeRules = { required: true, size: 'xlarge', }, + { + name: 'number', + maxLength: 750, + label: 'number', + required: true, + size: 'mini', + autoComplete: 'nope', + }, { name: 'complement', maxLength: 750, @@ -41,13 +49,14 @@ const rules: PostalCodeRules = { maxLength: 100, label: 'city', required: true, - size: 'large', + size: 'xlarge', }, { + hidden: true, name: 'state', maxLength: 100, label: 'department', - required: true, + required: false, size: 'large', }, {