Jump to content

[SOLVED] How to disable ZIP post code verification / format? (PrestaShop 1.7)


HugeB

Recommended Posts

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 by HugeB (see edit history)
  • Like 1
Link to comment
Share on other sites

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),
  • Like 3
Link to comment
Share on other sites

  • 6 years later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...