1

我正在使用 magento 默认时事通讯订阅者。我发现There was a problem with the subscription: This email address is already assigned to another user.只有当订阅者在 magento 商店中有帐户时才会显示错误。如果订阅者是来宾客户,则不会显示错误,将显示成功消息,说明已订阅时事通讯。我如何也可以在访客订阅者中显示消息。

4

1 回答 1

1

您应该编辑以下文件:

/app/code/core/Mage/Newsletter/controllers/SubscriberController.php

在这行代码上方的第 63 行中:

$status = Mage::getModel('newsletter/subscriber')->subscribe($email);

添加以下代码:

$emailExist = Mage::getModel('newsletter/subscriber')->load($email, 'subscriber_email');
if ($emailExist->getId()) {
Mage::throwException($this->__('This email address is already exist.'));
}
于 2013-11-03T16:42:04.663 回答