如何在opencart 2.1中删除注册帐户表单中的电子邮件验证?

时间:2016-01-16 10:26:42

标签: javascript ajax opencart opencart2.x opencart-module

我正在尝试使用电话号码而非电子邮件ID注册客户,因此希望删除电子邮件地址验证

谢谢!

1 个答案:

答案 0 :(得分:1)

你可以试试这个:

catalog/controller/checkout/register.php

找到(第149行):

if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
    $json['error']['email'] = $this->language->get('error_email');
}

并将其评论出来。

catalog/controller/checkout/guest.php

查找(第203行):

if ((utf8_strlen($this->request->post['email']) > 96) || !filter_var($this->request->post['email'], FILTER_VALIDATE_EMAIL)) {
    $json['error']['email'] = $this->language->get('error_email');
}

并将其评论出来。

希望这对你有所帮助。

相关问题