We often help find solutions for frequently asked questions on our forum. And one of them is how to customize a template without changing the standard tpl. file. In this article we will explain in details the mechanism of loading templates in Prestashop. To change a module template in your theme you need to create a folder with the module name. This method works for css, tpl and js files. For instance, if you need to change the module file blockcart.tpl without making changes into the source module, you can simply copy the file into this folder: themes/your_theme/modules/blockcart/blockcart.tpl. where your_theme – is your theme name. This method can help you avoid problems when transferring to a new version. But if you are making changes directly into the source file, then your customization can get overridden by the source file from the new version.
Such possibility gives us the function Module::display() (more…)