简体   繁体   English

如何在magento的自定义模块中覆盖付款method.phtml文件

[英]how to override payment methods.phtml file in custom module in magento

I have added a custom payment module and i want to that module can override the methods.phtml that is currently present in app/design/frontend/base/default/checkout/onepage/payment/methods.phtml. 我添加了一个自定义付款模块,我希望该模块可以覆盖app / design / frontend / base / default / checkout / onepage / payment / methods.phtml中当前存在的method.phtml。 how i can overirde that file ? 我怎么能覆盖那个文件?

One of the wisest thing to do is to create your own path 最明智的事情之一就是创建自己的道路

ie app/design/frontend/[theme_name]/template/checkout/payment/methods.phtml 即app / design / frontend / [theme_name] /template/checkout/payment/methods.phtml

don't forget to override the existing block as well by following 不要忘记通过以下方法覆盖现有的块

http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/ http://inchoo.net/magento/overriding-magento-blocks-models-helpers-and-controllers/

as its safe if you write your own codes rather than editing core files. 如果您编写自己的代码而不是编辑核心文件,这是安全的。

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

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