Jump to content

PAID lesson - module


cikcak

Recommended Posts

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

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

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