问题描述
我正在尝试将客户"导入Magento.问题在于,它针对特定国家/地区的TLD显示错误.例如,[email protected]给出并显示错误和导入脚本,则该电子邮件无效.
I am trying to import Customers to Magento. The problem is that it shows error for country specific tlds. For example [email protected] 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.
- 检查具有此地址的客户是否可以通过前端创建,
- 检查您是否没有覆盖导入的客户实体,
这篇关于客户导入上的Magento电子邮件验证的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!