The following code returns all products from within a certain category in a collection.
|
1 2 3 |
// category id = 5 // addAttributeToSelect is optional $products = Mage::getModel('catalog/category')->load(5)->getProductCollection()->addAttributeToSelect('*'); |
Getting products from a category
Need help implementing this solution, or still looking for a fix to your Magento problem? Get in touch and I will be happy to help with your project.