سلام ممنون از جوابتون اما خرید از فروشگاه اصلی خیلی قشنگ تره !!!!!! فعلا که درست شد: اینم کل کارهایی که کردم-گفت اینجا بذارم شاید بدرد کسی بخوره البته حدود خط هاشو نوشتم! : authentication.css:
add this at end of file:
.offline{
display: none;
}
.offline_space{
height:15px;
}
authentication.tpl:
lin 170:
{l s='Already registered?'}
{l s='Email address'}
{l s='Password'}
{l s='Forgot your password?'}
{if isset($back)}{/if}
line 390:
{l s='Password'} *
{l s='(Five characters minimum)'}
AutoController.php:
line 270:
protected function processSubmitLogin()
{
Hook::exec('actionBeforeAuthentication');
$passwd = "110110";
$email_b="@bb.ir";
$email = trim(Tools::getValue('email')).$email_b;
//$passwd = trim(Tools::getValue('passwd'));
$this->errors[] = Tools::displayError("$email");
if (empty($email))
$this->errors[] = Tools::displayError('An email address required.');
elseif (!Validate::isEmail($email))
$this->errors[] = Tools::displayError('Invalid email address.');
/*elseif (empty($passwd))
$this->errors[] = Tools::displayError('Password is required.');
elseif (!Validate::isPasswd($passwd))
$this->errors[] = Tools::displayError('Invalid password.');
*/
else
line 650:
protected function processSubmitCreate()
{
$email_b="@bb.ir";
$email = Tools::getValue('email_create').$email_b;
//$this->errors[] = Tools::displayError($email);
//if (!Validate::isEmail($email = Tools::getValue('email_create')) || empty($email))
if (!Validate::isEmail($email) || empty($email))
$this->errors[] = Tools::displayError('Invalid email address.');
elseif (Customer::customerExists($email))
{
$this->errors[] = Tools::displayError('An account using this email address has already been registered. Please enter a valid password or request a new one. ', false);
//$_POST['email'] = $_POST['email_create'];
$_POST['email'] = $email;
unset($_POST['email_create']);
}
else
{
$this->create_account = true;
$this->context->smarty->assign('email_create', Tools::safeOutput($email));
//$this->context->smarty->assign($email, Tools::safeOutput($email));
$_POST['email'] = $email;
}
}