March 9, 2016
Magento: 获取产品评论 get all reviews with review summary
1. 根据产品id获取该产品评论
$productId = 1234;
$product = Mage::getModel('catalog/product')->load($productId);
$storeId = Mage::app()->getStore()->getId();
Mage::getModel('review/review')->getEntitySummary($product, $storeId);
$ratingSummary = $product->getRatingSummary();
print_r($ratingSummary->getData());… Read More