/ Published in: PHP
URL: http://thaider.info
Get Magento product by specific category id (Magento version 1.7)
Expand |
Embed | Plain Text
<?php $_category = Mage::getModel('catalog/category')->load(3); $_testproductCollection = Mage::getResourceModel('catalog/product_collection') ->addCategoryFilter($_category) ->addAttributeToSelect('*'); $_testproductCollection->load(); foreach($_testproductCollection as $_testproduct){ }; ?>
You need to login to post a comment.
