javascript - Magento : Moving content to the review tab on the product page

标签 javascript css magento view tabs

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

相关文章:

html - 固定 1 行表格

html - Bootstrap 容器不中断文本行

Magento:导出属性

php - Magento:在审查期间向报价添加关税/税款

javascript - 带 Rails 的 Stripe 4 : This customer has no attached payment source

javascript - 如何使用 jquery 或 javascript 从对象内部将当前对象作为 JSON 字符串返回?

javascript - 使用 Javascript 和 Jquery 将字符串转换为整数

javascript - 错误 : function crashed out of request scope Function killed

html - 根据 URL 变量过滤 HTML 内容

content-management-system - 选择一个电子商务 CMS,它在 SEO 方面做得很好,并且有买家在选择产品后选择的变量。参见示例 :