Skip to content

Zip Code for Greece should not expect space #36676

@cptX

Description

@cptX

Preconditions and environment

  • Magento version
    2.4.5

Steps to reproduce

Go to cart or checkout, select Greece and insert postal code 12345

Expected result

No warning

Actual result

Zipcode gives warning

Additional information

Solution (completely written out, just copy and paste!)

Replace zip countrycode NL with:

 <zip countryCode="GR"> <codes> <code id="pattern_1" active="true" example="12345">^[0-9]{5}$</code> </codes> </zip> 

in /app/code/Magento/Directory/etc/zip_codes.xml

Release note

I'm 41 years old and I have never seen anyone write a zip code with a space in between here in Greece.
So getting an error/warning during ZIP Code input is definitely frustrating!
I have seen that several other countries face the same problem with this validation. For Greece I can ensure you that everybody writes the Zip code like this 12345 and not 123 45.
Even if you check the wikipedia you will see that actually there is a categorization defined by the first 2 digits and not 3, so in any case the current implementation is wrong. As far as I know everybody writes all 5 digits together. You can check this also here which gives a list with all zip codes and they give them as continues 5 digit numbers.

I would like also to reference this issue which is similar and with the same solution.
#11898

Triage and priority

  • Severity: S0 - Affects critical data or functionality and leaves users without workaround.
  • Severity: S1 - Affects critical data or functionality and forces users to employ a workaround.
  • Severity: S2 - Affects non-critical data or functionality and forces users to employ a workaround.
  • Severity: S3 - Affects non-critical data or functionality and does not force users to employ a workaround.
  • Severity: S4 - Affects aesthetics, professional look and feel, “quality” or “usability”.

Metadata

Metadata

Assignees

Labels

Area: Admin UIIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedPriority: P3May be fixed according to the position in the backlog.Progress: doneReported on 2.4.5Indicates original Magento version for the Issue report.Reproduced on 2.4.xThe issue has been reproduced on latest 2.4-develop branch

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions