Prestashop 1.7使用模块覆盖.tpl文件

时间:2017-01-06 09:58:45

标签: prestashop-1.7

我正在尝试在prestashop 1.7。*中创建一个模块。我遇到了需要编辑位于 themes / classic / templates / checkout 文件夹中的 cart.tpl 文件的情况。在文档中,我遇到了 / themes / [theme_name] / modules ,其描述为" 子文件夹,用于覆盖.tpl文件和语言文件,如有必要。" 。无法找到正确的解释我尝试创建" MyModule / themes / classic / templates / checkout / cart.tpl" ,遗憾的是,更改未反映在网站中。我不知道应该做些什么。

P.S当我尝试创建一个钩子并通过改变 themes / classic / templates / checkout / cart.tpl 文件放置它时,它成功了。我打算将我的钩子放在我的模块中,覆盖 cart.tpl 文件。

0 个答案:

没有答案
相关问题