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

Get Magento Search Engine Optimization now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.