升级magento1.5后 快速搜索功能损坏
前段时间将magento升级到了1.5,经测试,有很多功能都不能使用,比如快速搜索功能。
问题:在搜索框内不论输入任何字符,都只返回一种产品!
解决方法:
编辑app/code/core/Mage/CatalogSearch/Block/Result.php
删除149-150行前注释
$this->getListBlock()
->setCollection($this->_getProductCollection());
修改172行
$this->_productCollection = $this->getListBlock()->getLoadedProductCollecti
为
$this->_productCollection
进入后台System > Index Management) and 选择all the Indexes > Pick action is “Reindex data” > 点击“Submit”. 然后删除缓存即可!
近期评论