0

I want to know if Is it possible to get product reviews, let's say last 5 to appear on the Product page itself using the default Magento without any paid extension?

Just Below Add Tags options...

enter image description here

1 Answer 1

0

put below code into your layout/local.xml

<?xml version="1.0" encoding="UTF-8"?>
<layout>
    <catalog_product_view>
        <reference name="product.info">
            <block type="review/product_view_list" name="product.reviews.list" as="listreviews" template="review/product/view/list.phtml" />
        </reference>
    </catalog_product_view>
</layout>

and call below line into your catalog/product/view.phtml

<?php echo $this->getChildHtml('listreviews') ?>
3
  • Thanks a lot bro.... local.xml was not present in my theme so i created it in layout directory and pasted this code... and also pasted this code in view.phtml but this doesn't seem to be working.. :( Commented Mar 26, 2017 at 20:49
  • find updated answer @sehajnarang Commented Mar 27, 2017 at 6:14
  • ??? can't understand Commented Mar 29, 2017 at 12:01

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.