cikcak Posted March 5, 2015 Share Posted March 5, 2015 Hey, I can`t understand how to overload prestashop admin page (AdminOrdersController) - _product_line.tpl. I need to add aditional block to this tpl file when module install and delete that when uninstall. For this example or lesson I could pay. Write me PM with prices and time. Have a nice day! Link to comment Share on other sites More sharing options...
Enrique Gómez Posted March 5, 2015 Share Posted March 5, 2015 I had this problem once https://www.prestashop.com/forums/topic/217004-how-to-overloading-overriding-an-existing-back-office-template/?p=1168372 So, you have to change the include of the parent tpl -> for example: Link to comment Share on other sites More sharing options...
cikcak Posted March 5, 2015 Author Share Posted March 5, 2015 Okey, but how about path? How to reach modules/mymodule/view/_product_line.tpl? Its only example. Link to comment Share on other sites More sharing options...
Enrique Gómez Posted March 5, 2015 Share Posted March 5, 2015 Given the fact that you have to override the parent template (view.tpl), you should copy the _product_line.tpl in the override folder -> for example as in the screencap attached before. So you can importthe file with relative (. -> current .. ->parent folder) path, in the example the _product_line.tpl is two folders above For absolute paths, you'll need some smarty variable that has the same value as _PS_MODULE_DIR_ Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now