S
S
Shimpanze2018-06-20 09:23:05
opencart
Shimpanze, 2018-06-20 09:23:05

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!
<?php echo $footer; ?>
<?php echo $footer_alternate; ?>

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zoozag, 2018-06-20
@Shimpanze

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 question

Ask a Question

731 491 924 answers to any question