RSS

How to add reviews section in view.phtml in magento

29 Dec

In the catalog.xml layout:
app/design/frontend/default/custom/layout/catalog.xml

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

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

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:

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s

 
%d bloggers like this: