Skip to content

Instantly share code, notes, and snippets.

@tinchodev
Created December 22, 2014 00:34
Show Gist options
  • Save tinchodev/9b771c70080146fb6132 to your computer and use it in GitHub Desktop.
Save tinchodev/9b771c70080146fb6132 to your computer and use it in GitHub Desktop.
Magento Append Ratings to Product Collection
if ($productCollection instanceof Varien_Data_Collection) {
$productCollection->load();
Mage::getModel('review/review')->appendSummary($productCollection);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment