存储明智的电子邮件不工作magento 1.5

时间:2013-06-13 05:45:48

标签: magento

我的网站上有5个不同的商店。我的默认商店是英文,    1)当有人从英国商店注册时,他会收到英文版的电子邮件    2)当有人从德国商店注册时,他也会收到英语而不是德语的电子邮件。

解决这个问题的任何想法。

谢谢, Hardik

1 个答案:

答案 0 :(得分:2)

Finally i got the solution for new customer registration emails.
Mage/Customer/Model/Customer.php

in this file i have make some changes as following.
find this line of code
if (!$storeId) 
{
    $storeId = $this->_getWebsiteStoreId($this->getSendemailStoreId());
}

and replace with

$storeId = ($storeId == '0')?$this->getSendemailStoreId():$storeId;
if ($this->getWebsiteId() != '0' && $storeId == '0') 
{
    $storeIds = Mage::app()->getWebsite($this->getWebsiteId())->getStoreIds();
    reset($storeIds);
    $storeId = current($storeIds);
}

谢谢,