且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento不翻译愿望清单产品名称和描述

更新时间:2023-11-30 12:24:58

我在Magento 1.6.2CE上也遇到了这个问题.-在切换商店语言时,产品名称将保持默认语言.

在文件 Wishlist\Model\Item.php 周围的第 319 行,您需要删除代码行:

 公共函数getProduct(){$ product = $ this-> _getData('product');//<-删除此行 

使用正确的商店过滤器重新加载$ ​​product对象.

I have a developmental Magento Store I'm setting up with two languages. Everything works perfect except the SideBar Wishlist and the "My Account" Wishlist displays the Spanish option no matter what. Everything switches i.e. the "My Wishlist" title header, even the email to friend box that automatically writes in "Please, enter your comments..." changes correctly. But the product name and discription remians in Spanish. I've tried this suggestion here: Wishlist don´t capture store views lenguage

Has anyone figured out how to fix this or what I might have set incorrectly?

Thanks

I had this problem as well on Magento 1.6.2CE. - while switching store languages product names remain in default language.

On a file Wishlist\Model\Item.php arround line 319 you need to remove the line of code:

public function getProduct()
{
    $product = $this->_getData('product'); // <-- remove this line

The $product object is reloaded again with the correct store filter.