How to get Production collection with category filter in magento?
Get Product collection and category filter in Magento
$productcollection = Mage::getModel(‘catalog/product’)->getCollection();
$productcollection = $productcollection->addCategoryFilter(Mage::getModel(‘catalog/category’)->load($currcategory),true);
$productcollection = $productcollection->addAttributeToFilter(‘special_price’, array(‘gt’ => 0));
echo $productcollection->getSize();
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home