HugeB Posted March 2, 2017 Share Posted March 2, 2017 (edited) Hello, Does anybody know how to disable ZIP code verification in PrestaShop 1.7? I can't find any settings or file to edit that. Right now ZIP code needs to be like: "XX-1000". If my client type "1000" says "Wrong ZIP code" and many peoples don't know what to do. I would like to completly disable that option. I know many potencial coustumers who don't know where "- minus" is located on keyboard, and so on... Thank you for help! Kind regards Edited March 3, 2017 by HugeB (see edit history) 1 Link to comment Share on other sites More sharing options...
El Patron Posted March 3, 2017 Share Posted March 3, 2017 from your shops admin international-->locations-->countries for each country remove the zip format https://www.screencast.com/t/rmq6RbRS 2 1 Link to comment Share on other sites More sharing options...
shokinro Posted March 3, 2017 Share Posted March 3, 2017 if your country has zip code and you still want to keep it but just do not want it to be validated. then you may try to modify following line to remove red part in file /classes/Address.php 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), 3 Link to comment Share on other sites More sharing options...
HugeB Posted March 3, 2017 Author Share Posted March 3, 2017 Great! Thank you very much for help, booth options are perfect. I will mark this post as solved. Kind regards! 2 Link to comment Share on other sites More sharing options...
ej.farsta Posted July 25, 2023 Share Posted July 25, 2023 On 3/3/2017 at 3:06 AM, shokinro said: if your country has zip code and you still want to keep it but just do not want it to be validated. then you may try to modify following line to remove red part in file /classes/Address.php 'postcode' => array('type' => self::TYPE_STRING, 'validate' => 'isPostCode', 'size' => 12), Didn't work for me ... Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now