1) Add form data to catalog.xml & view.phtml The first thing to do is to add the review blocks to
the correct XML reference in catalog.xml which is in
app > design > frontend > default > yourtheme > layout
you’ll see the <reference name=”content”> for the catalog_product_view class.
Inside this reference add the following code:
<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') ?>
2) Add Ratings to Reviews Star ratings on reviews are not enabled as standard, but should be utilised because they give customers a quick reference to the feedback of the product, without having to read the whole review.
To enable this simply go to Catalog > Reviews & Ratings > Manage Ratings
From here simply go into each rating that you want to enable, find Rating Visibility and click on the store view that you want to enable it for, then Save.At this stage you’ll need to apply some CSS styling to improve
the appearance of the summary and form. Below is an example on a site I worked on recently.
the correct XML reference in catalog.xml which is in
app > design > frontend > default > yourtheme > layout
you’ll see the <reference name=”content”> for the catalog_product_view class.
Inside this reference add the following code:
<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') ?>
2) Add Ratings to Reviews Star ratings on reviews are not enabled as standard, but should be utilised because they give customers a quick reference to the feedback of the product, without having to read the whole review.
To enable this simply go to Catalog > Reviews & Ratings > Manage Ratings
From here simply go into each rating that you want to enable, find Rating Visibility and click on the store view that you want to enable it for, then Save.At this stage you’ll need to apply some CSS styling to improve
the appearance of the summary and form. Below is an example on a site I worked on recently.
No comments:
Post a Comment
Thankyou for your Comments