moduleprestashophtml-metaprestashop-1.6

How to change meta title in prestashop module?


I'm using prestashop 1.6 and one module is not editable in SEO&URL, to change is meta.

Actually, i have the default pretashop meta title.

How can i add a custom header.tpl for this module ?


Solution

  • Assuming you are talking about a module with a controller,
    you can add in the base file /modules/mymodule/mymodule.php,
    inside the method __construct(),
    a object like this $this->controllers = array('controller_file_name');, where the controller_file_name is the file which generate the page in the front office.

    Once made this, you will need to re-install the module and this added object will generate a new page in the SEO&URL where you could change all the metas (title, description and keywords).

    You can see some examples of this modules in the bankwire, cheque and blocknewsletter.