magento - use phtml code instead of xml code to display reviews -
i added below code in catalog.xml file , reviews section displaying in product view page. want display under particular tab.
<block type="review/product_view_list" name="product.info.product_additional_data" as="product_review" template="review/product/view/list.phtml"> <block type="review/form" name="product.review.form" as="review_form"/></block>
is there way can use phtml code display review section.
so planning use phtml code under tab
you can call in particular tab content getchildhtml
function call particular block content. below:
echo $this->getchildhtml('product_review'); echo $this->getchildhtml('review_form');
Comments
Post a Comment