您的位置:首页 > 运维架构

magento中“ Google Content API for Shopping 1.6”提交新产品后显示空白页面的解决方法

2013-01-29 17:27 495 查看
magento 版本:v1.6.1.0

Google Content API for Shopping 1.6

早前,magento 添加新产品后一直处于“Google Shopping synchronization process is running”状态(可参考/article/10154796.html),修复之后,在"available
product" 向google content添加新产品,页面转向空白页面。查看merchants的Products页面,新产品添加成功。

重新进入Google
Content ->Manage Items ,查看"available product" 发现刚才的新产品依然存在。

我的3个站点都同时出现同一个问题,初步判断是Google Merchants没有返回添加产品操作的状态给magento 的google content模块。

解决方法:

修改app/code/core/Mage/GoogleShopping/Model/Service/Item.php

大约在64行,把以下语句

$published
= $this->convertContentDateToTimestamp($entry->getPublished()->getText());

修改成

$published = date('Y-m-d H:i:s');

最后清除magento的ceahe。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: