pjssms Posted October 6, 2011 Share Posted October 6, 2011 Identification number is incorrect or has already been used. I got this error when trying to create a new client. What can be causing this ? version 1.4.4.1 Link to comment Share on other sites More sharing options...
pjssms Posted October 6, 2011 Author Share Posted October 6, 2011 I see that a message displaying this is inside this piece of code if ($country->isNeedDni() AND (!Tools::getValue('dni') OR !Validate::isDniLite(Tools::getValue('dni')))) $this->errors[] = Tools::displayError('Identification number is incorrect or has already been used.'); elseif (!$country->isNeedDni()) $address->dni = NULL; on controllers/addresscontroller.php Link to comment Share on other sites More sharing options...
pjssms Posted October 6, 2011 Author Share Posted October 6, 2011 the class is defined in country.php public static function isNeedDniByCountryId($id_country) { return (bool)Db::getInstance()->getValue(' SELECT `need_identification_number` FROM `'._DB_PREFIX_.'country` WHERE `id_country` = '.(int)$id_country); } And i changed the country for not needing DNI. UPDATE ps_country` SET `need_identification_number` = '0' WHERE `ps_country`.`id_country` =15; I don´t know what is DNI field or if this is a new feature or how to set it via back office. I have done this at the database directly and at least it is accepting new clients. Link to comment Share on other sites More sharing options...
pjssms Posted October 6, 2011 Author Share Posted October 6, 2011 Here is where i found the information about where the function was being used http://codes-libres.org/apps/prestashop_1.4.0.14/nav.html?_functions/index.html Link to comment Share on other sites More sharing options...
lettersets Posted June 11, 2012 Share Posted June 11, 2012 You can also change the following (found this solution in another thread and it works for me): In Back Office go to Shipping - Country - The Country - Remove tax needed. 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