How to add Magento Product Reviews form anywhere on product page - Ybus
6350
post-template-default,single,single-post,postid-6350,single-format-standard,ajax_fade,page_not_loaded,,side_area_uncovered_from_content,qode-child-theme-ver-1.0.0,qode-theme-ver-10.0,wpb-js-composer js-comp-ver-4.12,vc_responsive

How to add Magento Product Reviews form anywhere on product page

How to add Magento Product Reviews form anywhere on product page

download

From http://www.blog.plazathemes.com/archives/2566
If you want to add magento product review form anywhere on your product page instead of review tab just add following simple code.
Step1: open: catalog.xml in your “layout” directory. Find this section:

<reference name="content"> <block type="catalog/product_view" name="product.info" template="catalog/product/view.phtml">

Step2: Add the following after above line:


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

Step3: Now call following code where you want to display review form:

<?php echo $this->getChildHtml('product_additional_data_review’) ?> <?php echo $this->getChildHtml('review_form’) ?>