【问题标题】:magento How to add a block to the bundled product pagemagento 如何将块添加到捆绑的产品页面
【发布时间】:2018-10-13 06:47:18
【问题描述】:

我是 magento 的新手。在学习过程中,我想知道如何在捆绑的产品页面中添加块。我通过google找到的那条信息不知道如何处理。

【问题讨论】:

    标签: magento


    【解决方案1】:

    这取决于你想把它放在哪里,我假设你有一个带有local.xml 文件的主题设置,但你也可以在Admin->Manage Products->Edit Product->Design->Custom Layout Update 的产品编辑页面中添加该部分。

    xml,添加在app/design/frontend/[your-theme]/[your-subtheme]/layout/local.xml

        <PRODUCT_TYPE_bundle>
            <reference name="content">
                <block name="yourtheme_yoursubtheme_nameofblock" type="core/text" template="path/to/your/template.phtml" />
            </reference>
        </PRODUCT_TYPE_bundle>    
    

    这将在每个 bundle-type 产品页面的底部添加app/design/frontend/[your-theme]/[your-subtheme]/template/path/to/your/template.phtml 的输出。您可能想阅读Magento Layout XML

    【讨论】:

      猜你喜欢
      • 2012-02-09
      • 1970-01-01
      • 2018-05-15
      • 2014-03-31
      • 1970-01-01
      • 2012-09-14
      • 1970-01-01
      • 2014-05-08
      • 1970-01-01
      相关资源
      最近更新 更多