Pages

Tuesday, June 25, 2013

How to show product reviews on product page in Magento

Add the below code in the catalog.xml in the product view section

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

And then include the below line in the view.phtml file

<? getChildHtml('reviews') ?>

No comments:

Post a Comment