How to insert a module in header.tpl
file in opencart 2.0 ?
I have a module. Does not have the layout position option for that module.
So i need to place that manually in header.tpl
file.
I am already tried this but not working for opencart 2.0.
Please any one help me.
Thanks
In opencart 2.0 or above you can load the contoller of module :-
And In that module's controller file there should be a return of what it render.Like:
For example you have a custom module named "testmodule" under common folder
if you want to insert this module in header you need to do following thing
Load controller on catalog/controller/common/header.php
Echo the following code on header template file i.e. view/theme/default/template/common/header.tpl
This will work
Your code is wrong