我正在尝试使用电话号码而非电子邮件ID注册客户,因此希望删除电子邮件地址验证
谢谢!
答案 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');
}
并将其评论出来。
希望这对你有所帮助。