繁体   English   中英

Magento覆盖onepage.phtml

[英]Magento override onepage.phtml

经过大量搜索,我想将我的问题发布在堆栈上。 我遇到的问题是关于覆盖Magento checkout / onepage.phtml。 我已经将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>  

但是结帐页面的布局不正确,因为没有出现结帐进度并且设计中断。

有人可以告诉我我在做什么错吗?

我认为您的问题就是此处提到的路径。 它应该是,

mymodule / checkout / onepage.phtml

谢谢

暂无
暂无

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

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