How to add reviews section in view.phtml in magento

29 Dec

In the catalog.xml layout:

I added the following block to show the review form in view.phtml :

<block type="review/product_view_list" name="" as="product_review_data" template="review/product/view/list.phtml">
<block type="review/form" name="" as="review_form">
<block type="page/html_wrapper" name="" as="form_fields_before" translate="label">
<label>Review Form Fields Before</label>
<action method="setMayBeInvisible"><value>1</value></action>

From app/design/frontend/default/custom/layout/review.xml


Leave a comment

Posted by on Dec 29, 2011 in Magento


Tags: , ,

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: