如何重写TPL模块中的Prestashop 1.7.1.1
问题描述:
我尝试重写ps_categorytree模块的第三方物流,但没有奏效 我试图把文件下覆盖这样的:如何重写TPL模块中的Prestashop 1.7.1.1
override/themes/laber_ethan_home5/modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
-im使用prestashop 1.7.1.1我买了一个主题。
请帮忙!
答
你不需要把它放在覆盖文件夹中,只需使用活动主题中的模块文件夹即可。正确的方法把你的tpl文件是:
/themes/laber_ethan_home5/modules/ps_categorytree/views/templates/hook/ps_categorytree.tpl
希望它可以帮助你,再见。
是的,它帮助你非常感谢你的答案。但我有市场模块,他没有主题下的文件夹,所以我怎么可以重写他的tpl文件请! –
您需要创建这些文件夹。在“/ themes/laber_ethan_home5/modules /”中,你需要创建这个文件夹的结构 - >“/ ps_categorytree/views/templates/hook /”,然后创建这个文件 - >“ps_categorytree.tpl”。 – Addis
谢谢你的回答:) –