Jump to content

Changes in .tpl files won't show


Recommended Posts

Hello!

I have a problem with updating tpl files.

 

I wanted to change links in blockcategories (so title will be title, not description). So I changed 2 files:

- modules/blockcategories/category-tree-branch.tpl

- themes/my_theme/category-tree-branch.tpl

 

In both files line which generate link looks like this now

<a href="{$node.link}" {if isset($currentCategoryId) && ($node.id == $currentCategoryId)}class="selected"{/if} title="{$node.name|escape:html:'UTF-8'}">{$node.name|escape:html:'UTF-8'}</a>

 

After change uploaded files to ftp, turned off shop, cache, turned on "force compile", deleted files from 'cache' and 'compile' in tools/smarty.

 

And still nothing changed on my site. It is not related to browser cache - checked on 4 browsers (+ private mode in each one) and also on second computer.

 

tools/smarty/compile - empty

tools/smarty/cache - empty

"force compile" - on

"cache" - off

even changed in smarty.config.inc.php

$smarty->caching = false;
$smarty->force_compile = true;

 

Any ideas how to fix that? Tried also with some others tpl files (like footer - added class to div etc.) and they won't work too.

 

Using PrestaShop™ 1.4.4.1

Edited by belwarg (see edit history)
Link to comment
Share on other sites

Hi,

There is a problem with the categories block's cache in 1.4 (didn't check it in 1.5). Try opening blockcategories.php and remove the statement where it gets the cached version. i know it might sound redundant, but that's what i found to be the most useful thing sometimes. Can't remeber exactly where it is, but it should be in the hookLeftColumn function, as an IF statement.

Link to comment
Share on other sites

  • 2 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...