【问题标题】:Magento : Moving content to the review tab on the product pageMagento :将内容移动到产品页面上的评论选项卡
【发布时间】:2014-03-12 16:47:04
【问题描述】:

在这个页面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>

【问题讨论】:

  • 我添加了:
    getChildHtml('product_reviews') ?> getChildHtml('review_form') ?>

标签: javascript css magento view tabs


【解决方案1】:

打开 [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') ?>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2012-06-30
    • 2013-08-28
    相关资源
    最近更新 更多