私の問題は、magento の高度な検索で結果が返されないことです (通常の検索では返されます)。ダンプしたら
$this->getLoadedProductCollection()
私のテンプレートでは、「null」を返します。そこで、「app/code/local/Mage/CatalogSearch/Block/Advanced/Result.php」でコレクションを高度な検索テンプレート/ビューに設定するクラスを調べたところ、次のメソッドが見つかりました。
public function setListCollection() {
$this->getChild('search_result_list')->setCollection($this->_getProductCollection());
}
ダンプしたら
$this->_getProductCollection();
検索クエリに一致するすべての製品を取得します。しかし、なぜ最初のメソッドが null を返すのでしょうか? 何も思いつきません。
ご協力いただきありがとうございます。