且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento-使用“购物车"页面上的自定义模块添加自定义块

更新时间:2023-11-26 23:33:04

<checkout_cart_index>
    <reference name="checkout.cart">
        <block type="test/somblock" name="test.somblock" before="checkout.cart.totals" template="test/testing.phtml" />
        <block type="test/somblock" name="test.somblock" after="test.somblock" template="test/smtesting.phtml"/>      
    </reference>
</checkout_cart_index>

您要在购物车之前引用表格,但要在购物车中填写该表格.更改您的参考,然后将其添加到总计之前(或根据需要在折扣之前).

You are referring to the form before the cart, while you want it in the cart. Change your reference and add it before the totals (or before the discount if you like).