Magento “Forgot Password” email sent in wrong language

前端 未结 8 951
暗喜
暗喜 2021-01-19 10:34

I have a Magento site with multiple languages. I have setup the language packs and everything seems to translate properly on the website. Also the transactional e-mails are

8条回答
  •  梦毁少年i
    2021-01-19 10:57

    I have same problem in magento v1.5. After a long research i found this solution and its working for me.

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

提交回复
热议问题