Get Reviews for a product in magento


Hi Guys,
Here i have added some Magento Code for Get reviews collection or Reviews Summary collection data of a Product in Magento CMS. I hope it helps lot for beginners.

$_reviews = Mage::getModel('review/review')->getCollection()
->addStoreFilter(Mage::app()->getStore()->getId())
->addStatusFilter('approved')
->addEntityFilter('product', $_product->getId())
->setDateOrder(); // You can filter the results

foreach($_reviews as $re){
print_r($re->getData()); // You can get the results here
}

2 thoughts on “Get Reviews for a product in magento

  1. I was pretty pleased to find this site. I want to to
    thank you for your time due to this fantastic read!
    ! I definitely really liked every bit of it and I have you book-marked to look at
    new stuff on your web site.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s