diff --git a/src/app/code/community/IntegerNet/Solr/Model/Observer.php b/src/app/code/community/IntegerNet/Solr/Model/Observer.php index 3fcb1f9..8d9207b 100644 --- a/src/app/code/community/IntegerNet/Solr/Model/Observer.php +++ b/src/app/code/community/IntegerNet/Solr/Model/Observer.php @@ -212,6 +212,7 @@ protected function _getProductPageRedirectUrl($query) $matchingProductCollection ->addStoreFilter() ->addWebsiteFilter() + ->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED) ->addAttributeToFilter($filters) ->addAttributeToSelect(array('status', 'visibility', 'url_key')) ->setOrder('visibility', 'desc'); @@ -298,6 +299,7 @@ protected function _getProductUrl($product) $parentProductCollection ->addStoreFilter() ->addWebsiteFilter() + ->addAttributeToFilter('status', Mage_Catalog_Model_Product_Status::STATUS_ENABLED) ->addIdFilter($parentProductIds) ->addAttributeToSelect(array('status', 'visibility', 'url_key'));