Skip to content

Postal code (zip code) for Canada should allow postal codes without space #13899

@sl02

Description

@sl02

This is practically a copy-paste of issue #11898, which was for Netherlands.

Issue

Zip code validation warning on adresses from Canada.
Current validation is A1B 2C3
This should also allow postal code without space A1B2C3

Preconditions

Tested only on 2.2.

Steps to reproduce

Go to cart or checkout, select Canada and insert postal code A1B2C3

Expected result

No warning

Actual result

Zipcode gives warning

Additional info:
Like in issue #11898, even though having the space is the official format, having no space is still widely accepted and common. Should definitely not trigger an error.

Metadata

Metadata

Assignees

Labels

Fixed in 2.1.xThe issue has been fixed in 2.1 release lineFixed in 2.2.xThe issue has been fixed in 2.2 release lineFixed in 2.3.xThe issue has been fixed in 2.3 release lineIssue: ConfirmedGate 3 Passed. Manual verification of the issue completed. Issue is confirmedIssue: Format is validGate 1 Passed. Automatic verification of issue format passedIssue: Ready for WorkGate 4. Acknowledged. Issue is added to backlog and ready for developmentReproduced on 2.1.xThe issue has been reproduced on latest 2.1 releaseReproduced on 2.2.xThe issue has been reproduced on latest 2.2 releaseReproduced on 2.3.xThe issue has been reproduced on latest 2.3 releaseup for grabs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions