Magento - 使用 Google 基本描述的简短描述
我正在使用 magento,它内置了将产品添加到 google 库的功能。我想更改它,以便它使用简短描述作为 Google 库中的描述。与详细描述相反。
I am using magento and it's built in functionality for adding products to google base. I would like to change it so that it uses the Short description as the Description in Google base. As opposed to the detailed description.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
根据此截屏视频,您应该能够设置属性属性映射。这不适合你吗?
更深入地看,我没有谷歌基本帐户,所以我无法测试这个,但是,当我搜索谷歌基本模块时,看起来这就是它获取描述的地方
我在这里的一般方法是创建一个重写
Mage_GoogleBase_Model_Service_Item
类上的_setUniversalData
方法,如下所示祝你好运!
According to this Screencast you should be able to setup attribute attribute mappings. Is that not working for you?
Looking deeper, I don't have a google base account, so I can't test this, BUT, when I search through the Google Base module it looks like this is where it's grabbing the description
My general approach here would be to create an override for the
_setUniversalData
method on theMage_GoogleBase_Model_Service_Item
class that looks something like thisGood luck!
发现我所要做的就是更改:
到
app/code/core/Mage/GoogleBase/Model/Service/Item.php
Figured out all I had to do was change:
to
in app/code/core/Mage/GoogleBase/Model/Service/Item.php
我最终让模块正常工作并修复了所有错误。
我整理了有关如何设置 Magento Google Base feed 的简短分步指南,包括帐户配置、添加条件属性和设置。映射属性并在此处发布它们 http://blog.pod1.com/电子商务/magento-google-base-feed/
I eventually got the module to work and managed to fix all errors.
I put together short step-by-step guide on how to set up the Magento Google Base feed, including account configuration, adding the condition attribute & mapping attributes and publishing them here http://blog.pod1.com/e-commerce/magento-google-base-feed/
Magento 1.7.0.2 Google 购物 1.7.0.0
更改
$description = $this->getGroupAttributeDescription();
在
$description = $this->getGroupAttributeShortDescription();
Magento 1.7.0.2 Google Shopping 1.7.0.0
Change
$description = $this->getGroupAttributeDescription();
In
$description = $this->getGroupAttributeShortDescription();