Directory file path: app/code/core/Mage/Catalog/Model/Category.php
public function getProductCollection()
{
$collection = Mage::getResourceModel('catalog/product_collection')
->setStoreId($this->getStoreId())
->addCategoryFilter($this)
->addAttributeToFilter('featured', array('value'=>'1'));
return $collection;
}
Really wanted to know about the custom filters and I was looking desperately for this kind of posts. Thanks for such a great post, and keep updated.
ReplyDeleteferric citrate capsules
Really appreciated post, thanks for it.
ReplyDeleteTreatment For Gastric Problem In Delhi