在此页面上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

查找并添加标签

<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') ?>

10-07 19:39
查看更多