How to add the product review tab (and form) to the Magento product view page

21 October 2015| Post by Graham

AuthorGraham

In a recent project, I was tasked with adding the latest product reviews into the product tabs on the product view page.

Here is how I managed to do it :

In your review.xml layout file, you need to add the following code :

[cc lang=”xml”]



detailed_info


Reviews





[/cc]

You will now be able to use the following code in your review/product/view/list.phtml template file to output the form wherever you choose to :

[cc lang=”php”] getChildHtml(‘review_form’);?>
[/cc]
Scroll