[+] FO : now you can choose if at least on phone number is required

This commit is contained in:
vAugagneur
2012-09-21 09:25:17 +00:00
parent 59f00ea894
commit 48be553d25
5 changed files with 15 additions and 2 deletions
+1 -1
View File
@@ -124,7 +124,7 @@ class AddressControllerCore extends FrontController
$this->errors[] = Tools::displayError('Invalid token');
// Check phone
if (!Tools::getValue('phone') && !Tools::getValue('phone_mobile'))
if (Configuration::get('PS_ONE_PHONE_AT_LEAST') && !Tools::getValue('phone') && !Tools::getValue('phone_mobile'))
$this->errors[] = Tools::displayError('You must register at least one phone number');
if ($address->id_country)
{