Magento不翻译愿望清单产品名称和描述 [英] Magento Not Translating Wishlist Product Name and Description

查看:54
本文介绍了Magento不翻译愿望清单产品名称和描述的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一家发展中的Magento商店,我正在设置两种语言.一切都很完美,除了SideBar愿望清单和我的帐户"愿望清单无论如何都显示西班牙语选项.一切都会切换,即我的心愿单"标题标题,甚至自动在请输入您的评论..."中写给朋友的电子邮件框也会正确更改.但是产品名称和说明是西班牙文.我在这里尝试过以下建议:收藏清单不会捕获商店浏览量

有没有人知道如何解决此问题或我可能未正确设置的内容?

谢谢

解决方案

我在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.

这篇关于Magento不翻译愿望清单产品名称和描述的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆