比较产品侧栏项目不显示产品 [英] Compare Products Sidebar Item Doesn't Show Products

查看:72
本文介绍了比较产品侧栏项目不显示产品的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我单击产品上的添加到比较"时,会出现一条消息,指出某类产品已成功添加到比较列表中",但是比较产品"侧边栏显示您没有要比较的项目".如果我在template/catalog/product/compare/sidebar.phtml中执行print_r($this->helper('catalog/product_compare')->getItemCount()),则会返回"0".

When I click "Add to Compare" on a product, a message stating that "such-and-such product successfully added to compare list" appears, however the compare products sidebar shows "You have no items to compare." If I do a print_r($this->helper('catalog/product_compare')->getItemCount()) in template/catalog/product/compare/sidebar.phtml, "0" is returned.

为什么侧边栏不显示要比较的产品?

Why won't the sidebar show the products to compare?

信息:Magento版本1.4.0.1 会话似乎有效,因为我可以将产品添加到购物车中,并且当我在站点中导航时,它们将保留在购物车中.

Info: Magento version 1.4.0.1 Sessions appear to work for I can add products to the cart and they will stay in the cart as I navigate around the site.

谢谢你, 本

推荐答案

经过几个小时的搜索,找到了解决方案: 一个或多个索引需要重建.

Found the solution after several hours of searching: One or more of the indexes needed to be rebuilt.

如果其他任何人遇到此问题,请通过进入系统菜单并选择索引管理,在管理界面中找到触发索引重建的选项.

In case anyone else encounters this issue, the option to trigger index rebuilding is found in the admin interface by going to the System menu and selecting Index Management.

这篇关于比较产品侧栏项目不显示产品的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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