在此页上 http://www.acuity-sports.com/procage-batting-tunnel-net-42.html
我正在尝试将评论内容移动到页面上的评论选项卡。
这是加售前 view.phtml 底部的内容。
<div class="box-add-review">
<div class="box-add-review-inner">
<?php echo $this->getChildHtml('product_reviews') ?>
<?php echo $this->getChildHtml('review_form') ?>
</div>
</div>
最佳答案
打开 [magento]\app\design\frontend\default\default\layout\catalog.xml
查找并添加Tab
<catalog_product_view translate="label">
<reference name="content">
........
<block type="catalog/product_view_tabs" name="product.info.tabs" as="info_tabs" template="catalog/product/view/tabs.phtml" >
<action method="addTab" translate="title" module="review">
<alias>review</alias>
<title>Add Reviews</title>
<block>review/product_view_list</block>
<template>review/product/view/list.phtml</template>
</action>
</block>
.......
</reference>
</catalog_product_view>
[magento]\app\design\frontend\default\default\template\catalog\product\view.phtml
<?php echo $this->getChildHtml('info_tabs') ?>
关于javascript - Magento : Moving content to the review tab on the product page,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22358336/