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

Popular posts from this blog

sequelize.js - Sequelize group by with association includes id -

android - Robolectric "INTERNET permission is required" -

java - Android raising EPERM (Operation not permitted) when attempting to send UDP packet after network connection -