【问题标题】:Impossible to change my file on the serve无法在服务器上更改我的文件
【发布时间】:2021-08-25 15:54:10
【问题描述】:

我有一个问题,我是 Prestashop 的新手,我创建了我的子主题,我想修改后面的产品描述,所以我复制了文件 product.tpl 将其放入我的子主题中(使用随之而来的树结构)。 我想删除截断:

<h2 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">{$product.name|truncate:30:'...'}</a></h2>

所以我开始添加一些废话,看看我是否在正确的地方:

<h2 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">aze</a></h2>

成功了,所以我把它改成了:

<h2 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">{$product.name}</a></h2>

除了 "{$product.name}" 没有改变并保持 azeaze 所以我测试了:

<h2 class="h3 product-title" itemprop="name"><a href="{$product.url}" itemprop="url" content="{$product.url}">Test</a></h2>

而且仍然只剩下阿扎兹...

我试图清除缓存,重新启动电脑,删除文件及其树(它会恢复到我触摸它之前的状态,如果我创建一个新文件,不管是什么字我都会有 azeaze)以及作为私人浏览,但什么也没做:/

如果有人有一个想法我很感兴趣,因为我真的不明白为什么它不起作用(服务器没有关闭)

如果有人有想法,请提前感谢

【问题讨论】:

    标签: prestashop


    【解决方案1】:

    在您的后台转到Advenced Parameters -> Performance 并将Template compilation 设置为Recompile templates if the files have been updated

    【讨论】:

      猜你喜欢
      • 2019-04-19
      • 1970-01-01
      • 2020-03-04
      • 1970-01-01
      • 2013-01-28
      • 2018-02-06
      • 2017-02-28
      • 2018-09-06
      • 2020-06-14
      相关资源
      最近更新 更多