First, download the zip of my “review” folder, located in app/design/frontend/base/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’) ?>
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’) ?>
No comments:
Post a Comment
Note: only a member of this blog may post a comment.