简体   繁体   English

Magento覆盖onepage.phtml

[英]Magento override onepage.phtml

After a lot of searching, i thought to post my issue on stack. 经过大量搜索,我想将我的问题发布在堆栈上。 The issue that i am getting is regarding to override the Magento checkout/onepage.phtml. 我遇到的问题是关于覆盖Magento checkout / onepage.phtml。 I have placed the onepage.phtml in my custom module template like responsive/default/template/mymodule/checkout/onepage.phtml and defined in the layout.xml as bellow:- 我已经将onepage.phtml放置在我的自定义模块模板中,例如响应/默认/模板/mymodule/checkout/onepage.phtml,并在layout.xml中将其定义为:

<checkout_onepage_index>
    <reference name="checkout.onepage">
        <action method="setTemplate"><template>checkout\onepage.phtml</template></action>
    </reference>
</checkout_onepage_index>  

But the layout of the checkout page is not proper like the checkout progress not appearing and the design is break. 但是结帐页面的布局不正确,因为没有出现结帐进度并且设计中断。

Can somebody tell me what wrong i am doing? 有人可以告诉我我在做什么错吗?

I think the issue in your one is the path mentioned here. 我认为您的问题就是此处提到的路径。 It should be, 它应该是,

mymodule/checkout/onepage.phtml mymodule / checkout / onepage.phtml

Thanx 谢谢

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM