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
}
Advertisements