Posted over 9 years ago. Visible to the public.

Category Product Collection

This snippet provides a collection of products within a category

$cat = Mage::getModel('catalog/category')->load(1); $coll = Mage::getResourceModel('catalog/product_collection'); $coll->addCategoryFilter($cat);

Owner of this card:

Mike Whitby
Last edit:
about 8 years ago
Posted by Mike Whitby to Magento
This website uses short-lived cookies to improve usability.
Accept or learn more