要解決此問題,請打開文件「app \ code \ local \ Mage \ Customer \ Model \ Customer.php」。
尋找功能sendPasswordResetConfirmationEmail()。這是附近行685
這個功能看起來是這樣的:
/**
* Send email with reset password confirmation link
*
* @return Mage_Customer_Model_Customer
*/
public function sendPasswordResetConfirmationEmail()
{
$storeId = $this->getStoreId();
if (!$storeId) {
$storeId = $this->_getWebsiteStoreId();
}
$this->_sendEmailTemplate(self::XML_PATH_FORGOT_EMAIL_TEMPLATE, self::XML_PATH_FORGOT_EMAIL_IDENTITY,
array('customer' => $this), $storeId);
return $this;
}
在這個函數中,Magento的越來越其中用戶登記店鋪ID,但我們需要的店鋪ID,在那裏他取得了密碼重置請求。我們只需要刪除一些行並添加一個新行:
public function sendPasswordResetConfirmationEmail()
{
# this will get the current store ID
$storeId = Mage::app()->getStore()->getStoreId();
$this->_sendEmailTemplate(self::XML_PATH_FORGOT_EMAIL_TEMPLATE, self::XML_PATH_FORGOT_EMAIL_IDENTITY,
array('customer' => $this), $storeId);
return $this;
}
這對我有用,我希望它有幫助。
這個問題在1.8.1.0 – Cninroh