读书人

magento中“ Google Content API for

发布时间: 2013-02-15 15:46:56 作者: rapoo

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

magento 版本:v1.6.1.0

Google Content API for Shopping 1.6

早前,magento 添加新产品后一直处于“Google Shopping synchronization process is running”状态(可参考http://blog.csdn.net/matrixchan/article/details/8524154),修复之后,在"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。


读书人网 >系统运维

热点推荐