Magento 2 Validate Zip/Postal Code

Magento 2 Validate Zip/Postal Code

In case you may not know, Zip code or Postal code refers to a system of postal codes used by the United States Postal Service since 1963. Zip code is widely used in the whole world nowadays and store owners will need the zip code information from their shoppers for the management. In fact, each nation has their own model of zip code. For example, the United States of America a zip code is five or nine numbers while in some countries such as the United Kingdom and Canada, postal code is comprised of number and letters.

To help your shoppers enter the right Zip code, Mageplaza One Step Checkout encourage the visitors to use the US Zip code form when filling the information.

Validate Zip/Postal Code

A validate Zip/Postal Code on the checkout page is prescribed to include of 5 or 9 numbers. While entering the Zip code, the customers will need to type it as 12345 or 12345-6789. If the input Zip code does not match with the system format, an error notification will appear. However, if the shoppers Zip code does not follow the United States Postal Service form, they can ignore the message to continue the checkout.

zip code

Screencast

validate zip code video

Related Posts: