Posted over 9 years ago. Visible to the public.

Category Product Collection

This snippet provides a collection of products within a category

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

Owner of this card:

Avatar
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