Jump to content

BO template override by module


Inform-All

Recommended Posts

I am making a module, but now I need to override a BO template file. But this needs to be done at the installation of the module, so nobody needs to manually create/edit any files after the module installation.

 

I want to override: "admin1234/themes/default/template/controllers/orders/helpers/view/view.tpl"

 

Any pointers / tips would be great already! :)

 

Link to comment
Share on other sites

Hello,

 

Unfortunately prestashop only copy automaticaly the file .php

you can copy your file(s) in the function install() and remove them in the function uninstall.

I've done it for one of my module, you can take a look there : https://github.com/nenes25/prestashop_eicmslinks/blob/master/eicmslinks/eicmslinks.php

 

If it could helps. ( sorry comments in french )

  • Like 1
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...