Showing posts with label Get Rating summary in magento. Show all posts
Showing posts with label Get Rating summary in magento. Show all posts

Tuesday, 25 November 2014

How to get Rating summary in magento


How to get Rating summary in magento

$product = Mage::getModel('catalog/product')->load($productId);  // Place your product id here...
$storeId = Mage::app()->getStore()->getId();
Mage::getModel('review/review')->getEntitySummary($product, $storeId);
Rating summary = $product->getRatingSummary()->getRatingSummary();