add following code into block -tabs in catalog.xml-><product_view handler>
<block type="review/form" name="product.review.form" as="review_form"/>
<action method="addTab" translate="title" module="review"><alias>product_additional_data</alias> <title>Reviews</title><block>review/product_view_list</block><template>review/product/view/list.phtml</template></action>
<action method="addTab" translate="title" module="review"><alias>product_additional_data</alias> <title>Reviews</title><block>review/product_view_list</block><template>review/product/view/list.phtml</template></action>
then
replace
<?php // echo $this->getChildHtml('review_form') ?> and put below code
$layout = Mage::getSingleton('core/layout');
echo $layout->getBlock('content')->getChild('product.info')->getChild('info_tabs')->getChild('review_form')->toHtml(); ?>
in review/product/list.phtml......file
and then below code to review.xml file
<reference name="product.info.tabs">
<block type="page/html_pager" name="product_review_list.toolbar" as="toolbar"/>
<action method="addTab" translate="title" module="review">
<alias>avis</alias>
<title>Commentaires</title>
<block>review/product_view_list</block>
<template>review/product/view/list.phtml</template>
</action>
</reference>
<block type="page/html_pager" name="product_review_list.toolbar" as="toolbar"/>
<action method="addTab" translate="title" module="review">
<alias>avis</alias>
<title>Commentaires</title>
<block>review/product_view_list</block>
<template>review/product/view/list.phtml</template>
</action>
</reference>
Comments
Post a Comment
Feel Free To Ask...