【发布时间】:2013-01-18 07:53:31
【问题描述】:
我正在构建一个自定义模块,在某些情况下,我想用未显示价格的自定义块替换价格块,但我似乎无法覆盖该块。 我在我的模块 config.xml 中使用了以下代码
<catalog>
<rewrite>
<product_price>Namespace_Module_Block_Catalog_Product_Price</product_price>
</rewrite>
</catalog>
我在我的模块模板目录中创建了一个 /product/price.phtml,但 price.phtml 不会覆盖初始目录 /product/price.phtml 我应该如何覆盖该模板文件?
【问题讨论】:
标签: magento templates overriding