Answer the question
In order to leave comments, you need to log in
How to register custom footer template file in OpenCart?
Good afternoon!
The output of the "footer.tpl" file in OpenCart is done with this code:
I created my own "footer_alternate.tpl" file. Where can I register it in OpenCart to display it like this:
As far as I understand, OpenCart should have an analogue of the “functions.php” file like WordPress?
Thanks a lot! echo $footer;
echo $footer_alternate;
Answer the question
In order to leave comments, you need to log in
You have 2 options:
1. Connect an alternative footer controller to the page.
To do this, in the controller of the page you need, you need to find the lines:
And replace 'common/footer' with 'common/footer_alternate'
2.
Change template for output in footer
controllerreturn $this->load->view('common/footer', $data);
$this->load->view('common/footer_alternate', $data);
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question