簡體   English   中英

Magento錯誤:返回搜索中的所有產品

[英]Magento bug : Returning all products in search

http://ametrade.dev.icyberking.com

這是我的網站,我整日忙於搜索工作,以使搜索工作正常進行。當前正在運行的內容是我搜索的內容,它會返回該網站的所有產品,您沒有使用過whats關鍵字,我也搜索了谷歌發現,使描述和簡短描述不可搜索可以幫助使結果更准確,但這無濟於事,如果有人以前有過這樣的經歷,請與我分享

我正在使用Magnetico 1.7版本。 謝謝。

在Google上搜索更多之后,我找到了解決方案,我的問題轉到文件app \\ code \\ core \\ Mage \\ CatalogSearch \\ Block \\

現在搜索此方法setListCollection()。

public function setListCollection()
{
//        $this->getListBlock()
//           ->setCollection($this->_getProductCollection());
return $this;
}

replace below code

public function setListCollection()
{
$this->getListBlock()
->setCollection($this->_getProductCollection());
return $this;
}

這是實際的解決方案鏈接。... http : //developerview.wordpress.com/2012/08/08/magento-search-not-returning-expected-results/

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM