Jump to content

city is invalid ?


aMing

Recommended Posts

many people meet this peoblem in the forum .

what is the way to solve the problem ?

i wait !

thanks



A simple way is modifying the validate file at "..\classes\Validate.php".


line 360--line 366
static public function isCityName($city)
{
return true;
}




If you changed to this, it will not verify the format of the city name.
Link to comment
Share on other sites

Validate.php prestashop vs iestore : iestore is not this problem.

prestashop:

    static public function isCityName($city)
   {
       return preg_match('/^[^!<>;?=+@#"°{}_$%0-9]*$/ui', $city);
   }


iestore:

   static public function isCityName($city)
   {
       return eregi('^[^!<>;?=+@#"°{}_$%0-9]*$', $city);
   }


prestashop:

    static public function isName($name)
   {

       return preg_match('/^[^0-9!<>,;?=+()@#"°{}_$%:]*$/ui', stripslashes($name));
   }


iestore:

  static public function isName($name)
   {
       return preg_match('/^[^0-9!<>,;?=+()@#"°{}_$%:]*$/u', stripslashes($name));
   }



i like prestashop ,i like iestore too . but iestore need money .
i want to know why that iestore is not under the Open Software License (OSL) v3.0.
???

Link to comment
Share on other sites

Validate.php prestashop vs iestore : iestore is not this problem.




i like prestashop ,i like iestore too . but iestore need money .
i want to know why that iestore is not under the Open Software License (OSL) v3.0.
???


Why does iestore need money? I just downloaded it for free. Besides, why are you asking questions about iestore here in the Prestashop forum? Shouldn't you go to iestore to ask these questions?
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...