Question:Which of the following will get a list of products belonging to a specific category within a view file? 

A $productCollection = Mage::getResourceModel('catalog/product_collection') ->addCategoryFilter($category); 

B {{block type="catalog/product_list" category_id="7" template="catalog/product/list.phtml"}} 

C $productCollection = Mage::getResourceModel('catalog/product_collection') ->addFilter($category); 

D $productCollection = Mage::getModel('catalog/product_collection') ->addCategoryFilter($category); 

+ Answer
+ Report
Total Preview: 979

Copyright © 2025. Powered by Intellect Software Ltd