Book Image

Magento Search Engine Optimization

By : Robert Kent
Book Image

Magento Search Engine Optimization

By: Robert Kent

Overview of this book

Table of Contents (15 chapters)
Magento Search Engine Optimization
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Adding reviews directly onto our product pages


As mentioned in previous chapters, it's important that we make the most out of user-generated content. The best way to do this on our product pages is to display our reviews directly on the page (much like amazon.com).

By doing this, we will be adding fresh content to our product pages as well as providing useful information to our customers and increasing their likelihood to purchase our product (as long as the review is not too terrible).

To do this, we must edit our local.xml file once again (.../[theme]/layout/local.xml) and insert the following code:

<catalog_product_view>
  <reference name="product.info">
    <block type="review/product_view_list" name="product.info.product_additional_data" as="reviews" template="review/product/view/list.phtml">
      <action method="addToParentGroup">
        <group>detailed_info</group></action>
      <block type="review/form" name="product.review.form" as="review_form...