This is the blog for getting Idea regarding PHP, Magento, jQuery and JavaScript for Customization.

Friday 1 June 2012

Magento : Using resource model get all details of product

     $collection = Mage::getResourceModel('catalog/product_collection');

     foreach ($collection as $_product):

    $pro = $_product->getId();


                $model = Mage::getModel('catalog/product'); //getting product model
$_product1 = $model->load($pro);


    $_product1->getName();
    $_product1->getDescription();

    endforeach;




No comments:

Post a Comment