客户导入上的Magento电子邮件验证 [英] Magento Email validation on Customer Import

查看:157
本文介绍了客户导入上的Magento电子邮件验证的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将客户"导入Magento.问题在于,它针对特定国家/地区的TLD显示错误.例如,myemail@google.com.pk给出并显示错误和导入脚本,则该电子邮件无效.

I am trying to import Customers to Magento. The problem is that it shows error for country specific tlds. For example myemail@google.com.pk gives and error and import scripts says the email is not valid.

但是,当我从前端创建具有相同电子邮件ID的用户时,便创建了该帐户.我应该怎么做才能使Magento停止在客户导入时出现错误?

But when I create a user from the front end with the same email id, the account is created. What should I do so that Magento stops giving error on customer Import?

推荐答案

因此,客户导入过程通过文件/app/code/core/Mage/ImportExport/Model/Import/Entity/Customer.php起作用.在这里您将找到电子邮件支票.

So the customer import process works via the file /app/code/core/Mage/ImportExport/Model/Import/Entity/Customer.php. Here you will find the email check.

if (!Zend_Validate::is($email, 'EmailAddress')) {
    $this->addRowError(self::ERROR_INVALID_EMAIL, $rowNum);
}

与通过前端创建客户时执行的检查完全相同.我建议以下内容对此进行调试.

It is the exact same check that is done when a customer is created via the front end. I would suggest the following to debug this.

  1. 检查具有此地址的客户是否可以通过前端创建,
  2. 检查您是否没有覆盖导入的客户实体,

这篇关于客户导入上的Magento电子邮件验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆