Php 如何在Magento中将购物车摘要添加到联系我们页面?

Php 如何在Magento中将购物车摘要添加到联系我们页面?,php,magento,layout,Php,Magento,Layout,我制作了一个自定义模板,希望将购物车摘要添加到某些页面的左栏,例如“联系我们”页面 有没有人能告诉我应该在contacts.xml中添加什么内容的正确方向 最好的, 伊斯梅尔 更新 <reference name="left"> <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml"> <act

我制作了一个自定义模板,希望将购物车摘要添加到某些页面的左栏,例如“联系我们”页面

有没有人能告诉我应该在contacts.xml中添加什么内容的正确方向

最好的, 伊斯梅尔

更新

<reference name="left">
        <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">
            <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
            <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
        </block>
</reference>

simplecheckout/cart\u item\u rendercheckout/cart/sidebar/default.phtml
groupedcheckout/cart\u项目\u渲染器\u groupedcheckout/cart/sidebar/default.phtml
configurablecheckout/cart\u项目\u渲染器\u configurablecheckout/cart/sidebar/default.phtml
这是尝试其他东西后的解决方案。不知道这是否是最佳实践,请给出反馈!:)


simplecheckout/cart\u item\u rendercheckout/cart/sidebar/default.phtml
groupedcheckout/cart\u项目\u渲染器\u groupedcheckout/cart/sidebar/default.phtml
configurablecheckout/cart\u项目\u渲染器\u configurablecheckout/cart/sidebar/default.phtml

simplecheckout/cart\u item\u rendercheckout/cart/sidebar/default.phtml
groupedcheckout/cart\u项目\u渲染器\u groupedcheckout/cart/sidebar/default.phtml
configurablecheckout/cart\u项目\u渲染器\u configurablecheckout/cart/sidebar/default.phtml

找到了!我将用答案更新我的问题。你应该将此添加为答案,然后接受它。顺便说一句,这是正确的解决方案。将其作为答案发布…我还不能接受,但我找到了!我将用答案更新我的问题。你应该将此添加为答案,然后接受它。顺便说一句,这是正确的解决方案。将其作为答案发布…但我还不能接受
<reference name="left">
    <block type="checkout/cart_sidebar" name="cart_sidebar" template="checkout/cart/sidebar.phtml">
        <action method="addItemRender"><type>simple</type><block>checkout/cart_item_renderer</block><template>checkout/cart/sidebar/default.phtml</template></action>
        <action method="addItemRender"><type>grouped</type><block>checkout/cart_item_renderer_grouped</block><template>checkout/cart/sidebar/default.phtml</template></action>
        <action method="addItemRender"><type>configurable</type><block>checkout/cart_item_renderer_configurable</block><template>checkout/cart/sidebar/default.phtml</template></action>
    </block>
</reference>