I want to disable this notice in the checkout from Magento:
Provided Zip/Postal Code seems to be invalid. Example: 1234 AB. If you
believe it is the right one you can ignore this notice.
I don't want to get an notice. Just want it to be required.
Can anybody help me how to do that?
I think this is special for Dutch shippingplaces.
Best Answer
Further to the answer by @Trabbie, there is a way to have a local override. The details are on the official docs but in a nutshell, create a custom extension, with a file
etc/zip_codes.xml
(in fact the docs currently say createetc/zip_code.xml
, but that filename is incorrect.)Then add your changes. However, there is currently a bug that means only the final
<code>
is used. So in the case of the Netherlands, I had to change my regex so that it made the space optional. My finalzip_codes.xml
looked like:PS. I know this isn't strictly hiding the warning as per the question, but it should reduce the chances of it being displayed!