1

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

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

谢谢,哈迪克

4

1 回答 1

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);
}

谢谢,

于 2013-06-25T11:23:29.247 回答