Jump to content

Identification number is incorrect or has already been used.


Recommended Posts

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

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

  • 8 months later...

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...