简体   繁体   中英

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. 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:-

<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

Thanx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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