I'm listing all the reviews on a particular page of my magento store:

$review_collection = Mage::getModel('review/review')

foreach($review_collection as $_review) {
    // ...

My question is how can I get the product of each review, something like this:

$product = $_review->getProduct();

So I can also list the product title and its URL so customers can click on the review to the particular product page.

Better yet, displaying the product cover photo as well so users can compare the product photo with the custom ones.

How can I do this?


1 Answer 1


Got it. Just get product ID of each review and then load its product like this:

$productId = $_review -> getEntityPkValue();
$product = Mage::getModel('catalog/product')

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.