--- ./app/code/core/Mage/CatalogSearch/Model/Mysql4/Query.php.org 2010-12-15 16:32:26.000000000 +0100 +++ ./app/code/core/Mage/CatalogSearch/Model/Mysql4/Query.php 2010-12-15 16:34:40.000000000 +0100 @@ -64,6 +64,9 @@ */ public function loadByQuery(Mage_Core_Model_Abstract $object, $value) { + $startCategory = 2227; + $searchCategory = Mage::app()->getRequest()->getParam('cat'); + if($searchCategory == $startCategory) { $select = $this->_getReadAdapter()->select() ->from($this->getMainTable()) ->where('synonym_for=?', $value) @@ -74,6 +77,7 @@ $object->setData($data); $this->_afterLoad($object); } + } return $this; }