[+] FO : now you can choose if at least on phone number is required
This commit is contained in:
1 parent
59f00ea894
commit
48be553d25
5 files changed
+15
-2
No files matched your search
@@ -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)
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user