Showing posts with label Set Product Reviews on Product Detail Page in Magento. Show all posts
Showing posts with label Set Product Reviews on Product Detail Page in Magento. Show all posts

Monday, 20 October 2014

Display Product Reviews on Product Detail Page in Magento


Display Product Reviews on Product Detail Page in Magento

You need to open catalog.xml file and add following code in <catalog_product_view translate="label"> in <reference name="content">

<block type="review/product_view_list" name="product.info.product_additional_data" as="product_review" template="review/product/view/list.phtml">
<block type="review/form" name="product.review.form" as="review_form"/>
</block>

Now open View.phtml file and add following code at proper place.

app/design/frontend/default/YourTheme/template/catalog/product/view.phtml

<?php echo $this->getChildHtml('product_review') ?>