Hello,
I would like to limit the zip codes and tweak the zip_codes.xml file in Magento.
so the file says:
<code id="pattern_1" active="true" example="1234">^[0-9]{4}$</code> <code id="pattern_2" active="true" example="1234-567">^[0-9]{4}-[0-9]{3}$</code>
But I wanted to see if there is a way not allow any value more than 1999 or 1999-999 to be entered.
Thank you.
Solved! Go to Solution.
What challenges are you facing in this, this is correct. It should work as expected.
Here is official document:
https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_zip.html
https://github.com/magento/magento2/blob/2.3/app/code/Magento/Directory/etc/zip_codes.xsd
How to override:
What challenges are you facing in this, this is correct. It should work as expected.
Here is official document:
https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_zip.html
https://github.com/magento/magento2/blob/2.3/app/code/Magento/Directory/etc/zip_codes.xsd
How to override:
@Manish Mittal wrote:
What challenges are you facing in this, this is correct. It should work as expected.
Here is official document:
https://devdocs.magento.com/guides/v2.3/howdoi/checkout/checkout_zip.html
https://github.com/magento/magento2/blob/2.3/app/code/Magento/Directory/etc/zip_codes.xsd google street view
How to override:
Thank you very much for the very detailed help!