Blog

How to show Products collection in Magento?

You can use below code to get all Products collection in Magento on any of Magento page: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 $_productCollection = Mage::getModel(‘catalog/product’)->getCollection(); $_productCollection->addAttributeToFilter(‘status’, 1); //enabled or not $_productCollection->addAttributeToFilter(‘visibility’, 4); //catalog, search enabled or not foreach ($_productCollection as $_product) { $model … Continue reading How to show Products collection in Magento?