From 68cb70235062dae89e9d1160ab0845a3b6a6005c Mon Sep 17 00:00:00 2001 From: Staging Date: Mon, 1 Jul 2013 11:08:14 +0200 Subject: [PATCH] [-] Mobile : Bug fix : Authentication & phone number --- controllers/front/AuthController.php | 2 +- themes/default/mobile/authentication-create-account.tpl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/controllers/front/AuthController.php b/controllers/front/AuthController.php index d36c746c4..717937594 100644 --- a/controllers/front/AuthController.php +++ b/controllers/front/AuthController.php @@ -399,7 +399,7 @@ class AuthControllerCore extends FrontController if (!Tools::getValue('phone') && !Tools::getValue('phone_mobile')) $error_phone = true; } - elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') || Configuration::get('PS_ORDER_PROCESS_TYPE')) + elseif (((Configuration::get('PS_REGISTRATION_PROCESS_TYPE') && Configuration::get('PS_ORDER_PROCESS_TYPE')) || (Configuration::get('PS_ORDER_PROCESS_TYPE') && !Tools::getValue('email_create'))) && (!Tools::getValue('phone') && !Tools::getValue('phone_mobile'))) $error_phone = true; diff --git a/themes/default/mobile/authentication-create-account.tpl b/themes/default/mobile/authentication-create-account.tpl index fc434e16e..81dba6aa0 100644 --- a/themes/default/mobile/authentication-create-account.tpl +++ b/themes/default/mobile/authentication-create-account.tpl @@ -1,4 +1,4 @@ -
+ {$HOOK_CREATE_ACCOUNT_TOP}