Knowledge base

How to insert review form to product page?

By default, the Advanced Reviews extension is set up to show the Reviews List and the Submit Review form on a separate web page. However, it is also possible to insert both of them directly into the product view page.

 

To insert the Reviews List and Submit Review form to the product page, you should do the following:

 

1. Open the /<your_package>/<your_theme>/layout/catalog.xml file, which has your_theme as the name of your current theme and your_package as your current design package. If you haven't ever changed your store's theme or design package, use default as the value. 

 

2. Find the following string:

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


and insert this code after it:

 

<block type="advancedreviews/ajax_content" name="product.info.advancedreviews_product_additional_data" as="advancedreview_custom" template="advancedreviews/ajax/content.phtml">
    <block type="advancedreviews/summary" name="advancedreviews.summary_reviews" as="advancedreviews_summary_reviews" template="advancedreviews/summary.phtml"/>
    <block type="advancedreviews/ajax_filter" name="advancedreviews.ajax-content-filter" as="advancedreviews_ajax-content-filter" template="advancedreviews/ajax/filter.phtml">
        <block type="advancedreviews/ajax_proscons" name="advancedreviews.ajax_proscons" as="advancedreviews_ajax-proscons" template="advancedreviews/ajax/proscons.phtml">
            <block type="advancedreviews/ajax_pager" name="advancedreviews.ajax_pager" as="advancedreviews_ajax-pager" template="advancedreviews/ajax/pager.phtml"/>
            <block type="advancedreviews/ajax_reviews" name="advancedreviews.ajax_reviews" as="advancedreviews_ajax-reviews" template="advancedreviews/ajax/reviews.phtml"/>
        </block>
    </block>
    <block type="advancedreviews/product_form" name="product.review.form" as="review_form">
        <block type="advancedreviews/proscons_checker" name="aw.advancedreviews.proscons.checker" as="advancedreviews_proscons_checker" template="advancedreviews/proscons/checker.phtml" />
        <block type="advancedreviews/recommend_field" name="aw.advancedreviews.recommend.field" as="advancedreviews_recommend_field" template="advancedreviews/recommend/field.phtml" />
    </block>
    <block type="core/template" name="aw.advancedreviews.login" as="advancedreviews_login" template="advancedreviews/login.phtml" />
    <block type="core/template" name="aw.advancedreviews.needbuy" as="advancedreviews_needbuy" template="advancedreviews/needbuy.phtml" />
    <block type="advancedreviews/allmylink" name="aw.advancedreviews.allmylink" as="advancedreviews_allmylink" template="advancedreviews/allmylink.phtml" />
    <block type="advancedreviews/form" name="aw.advancedreviews.form" as="advancedreviews_form">
        <action method="awShowReviewFormEvent"></action>
    </block>
    <action method="disableNativeReviews" />
</block>

 

3. Then open the /<your_package>/<your_theme>/template/catalog/product/view.phtml file;

 

4. Find the following string:

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


and insert this code after it:

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

 

Please, do not forget to flush the store cache. After this is done, the review list and the submit form must appear on the product page.

Please wait...

added to cart
Go to Checkout Continue Shopping
Continue shopping
View cart & checkout