Magento had functionality for showing the reviews in review page .Now it is Easy way to get the Product Reviews on Product View Page Add the follwing code in
Add the review blocks to the correct XML reference in catalog.xml which is in app > design > frontend > default > yourtheme > layout
<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 the XML is set up, you just need to echo it on the product page in app > design > frontend > default > yourtheme > template > catalog > product > view.phtml
<?php echo $this->getChildHtml('product_review') ?>
Add the review blocks to the correct XML reference in catalog.xml which is in app > design > frontend > default > yourtheme > layout
<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 the XML is set up, you just need to echo it on the product page in app > design > frontend > default > yourtheme > template > catalog > product > view.phtml
<?php echo $this->getChildHtml('product_review') ?>
No comments:
Post a Comment
Thankyou for your Comments