0

how we can get product by category from collection

0
0

To get products by category ID:

    $_categoryId=YOUR_CATEGORY_ID_GOES_HERE;

    $_products = Mage::getModel('catalog/category')->load($_categoryId)
     ->getProductCollection()
     ->addAttributeToSelect('*');

 zend_debug::dump($_products->getData());

Not the answer you're looking for? Browse other questions tagged or ask your own question.