自定义购物车页面,不影响原来的


customize the shopping cart page without affecting the original

我正在开发一个新的magento自定义模块。我需要自定义购物车页面,而不影响原来的cart. html。我的模块名是Stallioni。我已经把车放好了。php内部前端/default/template/stallioni/checkout/cart。我怎么使用这个购物车?php在我的新模块,而不是原来的。我知道我们应该在checkout.XML或stallioni/layout/stallioni.xml文件中修改一些东西。但不知道,因为我是新来的。我用谷歌搜索了一天,但没有找到。http://blog.chapagain.com.np/magento-overriding-template-file-from-custom-module/这个链接告诉一些东西,但它没有为我工作。我需要你的帮助!

如果您的layout.xml工作,添加以下代码到您的布局

`<checkout_cart_index> 
   <reference name="content">
        <reference name="checkout.cart">
            <action method="setTemplate">               
               <template>default/default/template/stallioni/checkout/cart.phtml</template>
             </action>
        </reference>
    </reference>
</checkout_cart_index>`

它应该工作:)