Skip to content


Fixing Search in Magento 1.3.2.1

After upgrading to Magento 1.3.2.1, the search feature stopped working. I rebuilt the indexes but still no search results. I traced through the code and found that the new version filters out uncategorized products (products not assigned to a category). To revert to the old functionality modify the addVisibleInSearchFilterToCollection function in app/code/core/Mage/Catalog/Model/Product/Visibility.php (around line 80):

public function addVisibleInSearchFilterToCollection(Mage_Eav_Model_Entity_Collection_Abstract $collection)
    {
        //$collection->setVisibility($this->getVisibleInSearchIds());
        //$collection->addAttributeToFilter('visibility', array('in'=>$this->getVisibleInSearchIds()));
        return $this;
    }

Posted in magento.

Tagged with , .


0 Responses

Stay in touch with the conversation, subscribe to the RSS feed for comments on this post.



Some HTML is OK

or, reply to this post via trackback.

Spam Protection by WP-SpamFree