Thursday, 20 December 2012

Magento all product collection

Product collection :-




<?php
        $collectionproduct=Mage::getModel('catalog/product')->getCollection()->addAttributeToSelect('*');
 
foreach($collectionproduct as $_product){
echo $_product->getName();
}
    ?>

No comments:

Post a Comment