在 prestashop 中编辑 tpl 文件似乎没有任何作用
Editing tpl files in prestashop doesn't seem to do anything
我在 prestashop 中安装了 "Advanced Homepage Product List" 模块。
在配置中,我使用 "Your Template Style",我尝试编辑
/var/www/html/modules/prodcat/views/templates/hook/prodcat.tpl
它似乎是正在使用的那个,因为它有
<div class="block products_block clearfix">
和
<h4 class="title_block" style="margin-bottom:0px; ">
当我在网站上使用检查元素时出现。
还没有看到任何其他类似的文件。
我试图编辑它。就像删除 <h4>
元素一样,但它似乎没有做任何事情。
我在编辑错误的文件吗?或者我必须做些什么才能使我的更改生效?
最终答案,
当您编辑 tpl/js/css 文件时,编辑完成后,您需要进入后台选项卡
Advanced parameters -> Performance
并按 Clear cache
按钮。
或
如果您将在一段时间内进行持续更改,您可以设置 Samrty 缓存选项,例如Recompile templates if the files have been updated
状态。
转到Advanced parameters -> Performance
并在 模板编译 下拉列表
下选择 Force Compilation
我在 prestashop 中安装了 "Advanced Homepage Product List" 模块。 在配置中,我使用 "Your Template Style",我尝试编辑 /var/www/html/modules/prodcat/views/templates/hook/prodcat.tpl
它似乎是正在使用的那个,因为它有
<div class="block products_block clearfix">
和
<h4 class="title_block" style="margin-bottom:0px; ">
当我在网站上使用检查元素时出现。 还没有看到任何其他类似的文件。
我试图编辑它。就像删除 <h4>
元素一样,但它似乎没有做任何事情。
我在编辑错误的文件吗?或者我必须做些什么才能使我的更改生效?
最终答案,
当您编辑 tpl/js/css 文件时,编辑完成后,您需要进入后台选项卡
Advanced parameters -> Performance
并按 Clear cache
按钮。
或
如果您将在一段时间内进行持续更改,您可以设置 Samrty 缓存选项,例如Recompile templates if the files have been updated
状态。
转到Advanced parameters -> Performance
并在 模板编译 下拉列表
Force Compilation