Magento Tabbed Reviews

A quick tutorial for those looking for an easy way to display reviews, and the add review form to a tab in your Magento theme.

First, download the zip of my “review” folder, located in app/design/frontend/blank/default/template.

Second, 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”>

Add the following:

<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>

Finally, open you template file where you would like to display the reviews and form. You will need to create a new tab, then use this:

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

That should do it! Take a look at my implementation on AimToFind.com.

Tags: , , ,

Leave a Reply

You must be logged in to post a comment.