Skip to main content
added 94 characters in body
Source Link

Try below code to load product collection by category id

$category_id = $this->getRequest()->getParam('cat'); // 10 as Category Id
$products = Mage::getModel('catalog/category')->load($category_id)
    ->getProductCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('status', 1) 
    ->addAttributeToFilter('visibility', 4)
    ->setOrder('price', 'ASC');

Try below code to load product collection by category id

$products = Mage::getModel('catalog/category')->load($category_id)
 ->getProductCollection()
 ->addAttributeToSelect('*')
 ->addAttributeToFilter('status', 1) 
 ->addAttributeToFilter('visibility', 4)
 ->setOrder('price', 'ASC');

Try below code to load product collection by category id

$category_id = $this->getRequest()->getParam('cat'); // 10 as Category Id
$products = Mage::getModel('catalog/category')->load($category_id)
    ->getProductCollection()
    ->addAttributeToSelect('*')
    ->addAttributeToFilter('status', 1) 
    ->addAttributeToFilter('visibility', 4)
    ->setOrder('price', 'ASC');
Source Link

Try below code to load product collection by category id

$products = Mage::getModel('catalog/category')->load($category_id)
 ->getProductCollection()
 ->addAttributeToSelect('*')
 ->addAttributeToFilter('status', 1) 
 ->addAttributeToFilter('visibility', 4)
 ->setOrder('price', 'ASC');