Jump to content

Duplicate Module TPL Files


Recommended Posts

Some modules, like blockcms and blockcategories, have .tpl files in both /modules/ and /themes/.../modules/ . They're identical except that the /modules/ versions use <p> for headers and the /themes/.../modules/ versions use <h4>.

 

Why do both exist, and which should I edit?

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

it's a part of overriding feature, it's not a bug - it's a good practice

PrestaShop allows you to override or replace certain front-office module files with new ones within the same theme. The override is governed by the theme: once it contains a /modules folder (or more!), PrestaShop will browse its content for files which have the same name and path as those of existing modules, and replace these with the new ones.

 

if module file exist in the theme directory - edit it exactly as jitenx suggested.

Link to comment
Share on other sites

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...