覆盖自定义模板中的 Magento app/design/frontend/base/default/template
我试图覆盖
/app/design/frontend/base/default/template/paypal/partner/logo.phtml
名为 MyTemplate 的自定义模板,我是否
paypal/partner/logo.phtml
下复制?
在app/design/frontend/default/MyTemplate/template/
Im trying to over ride
/app/design/frontend/base/default/template/paypal/partner/logo.phtml
in my custom template called MyTemplate do I copy
paypal/partner/logo.phtml
under
app/design/frontend/default/MyTemplate/template/
?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有多种方法可以实现这一目标,Magento 背后的团队对“正确”的做事方式持中立态度,但“替换”模板的最简单方法是将基本模板复制到主题模板文件夹中的同一位置。
There's multiple ways to pull this off, and the team behind Magento is neutral on "the right" way to do things, but the simplest way to "replace" a template is to copy the base template to the same location in your theme's template folder.