【发布时间】:2018-10-13 06:47:18
【问题描述】:
我是 magento 的新手。在学习过程中,我想知道如何在捆绑的产品页面中添加块。我通过google找到的那条信息不知道如何处理。
【问题讨论】:
标签: magento
我是 magento 的新手。在学习过程中,我想知道如何在捆绑的产品页面中添加块。我通过google找到的那条信息不知道如何处理。
【问题讨论】:
标签: magento
这取决于你想把它放在哪里,我假设你有一个带有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
【讨论】: