覆盖块中的itemrender-Magento
我是Magento的新手,所以如果这是个新手问题 基本上,layout.xml文件中有一个块声明如下:覆盖块中的itemrender-Magento,magento,Magento,我是Magento的新手,所以如果这是个新手问题 基本上,layout.xml文件中有一个块声明如下: <block type="checkout/cart" name="checkout.cart"> <action method="setCartTemplate"><value>checkout/cart.phtml</value></action> <action method="setEmptyTemp
<block type="checkout/cart" name="checkout.cart">
<action method="setCartTemplate"><value>checkout/cart.phtml</value></action>
<action method="setEmptyTemplate"><value>checkout/cart/noItems.phtml</value></action>
<action method="chooseTemplate"/>
<action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/item/default.phtml</template></action>
<action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/item/default.phtml</template></action>
<action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/item/default.phtml</template></action>
checkout/cart.phtml
checkout/cart/noItems.phtml
simplecheckout/cart\u item\u rendercheckout/cart/item/default.phtml
groupedcheckout/cart\u item\u renderer\u groupedcheckout/cart/item/default.phtml
configurablecheckout/cart\u item\u renderer\u configurablecheckout/cart/item/default.phtml
我想用自定义模板覆盖simplecheckout/cart\u item\u rendercheckout/cart/item/default.phtml
既然在这里调用了一个方法,那么如何更改模板呢
非常感谢
模块布局文件或local.xml中的Krt_Malta
<reference name="checkout.cart">
<action method="addItemRender">
<type>simple</type><block>checkout/cart_item_renderer</block><template>path/to/your/item/default.phtml</template>
</action>
</reference>