【发布时间】:2014-05-08 14:05:04
【问题描述】:
早安,
我想在单个产品页面上将 [name="product.info.simple" as="product_type_data"] 块替换为 CMS 块。 [1] 下面的最后一个例子看起来很有希望。 [2] 下面是我尝试的布局更新 XML。此布局更新确实删除了 product_type_data 块,但产品页面中缺少 available_soon 块。
是否可以使用 XML 布局更新将 CMS 块添加到单个产品页面?任何线索将不胜感激。
谢谢,
-本
[1] http://magebase.com/magento-tutorials/5-useful-tricks-for-your-magento-local-xml/
[2]
<reference name="product.info">
<action method="unsetChild">
<name>product_type_data</name>
</action>
<block type="cms/block" name="available_soon" before="-">
<action method="setBlockId"><block_id>available-soon</block_id></action>
</block>
</reference>
【问题讨论】: