Hey guys, been using Opcencart for about a day or so and so far finding it pretty straight forward. But one thing I'm struggling to move the change language and currency switcher to the footer of the site. Could someone be so kind as to tell me which parts of the code needs moving? Searching for this subject brings up a thread but it never really got solved. I'm guessing I'll have to move some stuff around in the controller file as well as the view file, but it all seems very interlinked and so far I've not been able to do it without prompting some sort of error message. Anyone mind giving me a quick explanation of which parts to transfer?
Thanks in advance.
Infact I've just been trying a few things, and it's probably easier just to move everything from the bar under the navigation. Anyone got any idea how to do this?
EDIT:
All what I did below WORKS!
(What made it not work at first was a specific vqmod)
I need help with this too. I have added to catalog/controller/common/footer.php
And in footer.tpl I have added:
Just like it is in header.tpl.
But nothing happens. Something is missing. What can that be?
EDIT:
In the catalog/controller/module/language.php I've have added
just to see if this controller is even running...
And it's NOT.
It echoes this out when
is in catalog/controller/common/header.php but not in footer.php
All what I did below WORKS!
(What made it not work at first was a specific vqmod)
I need help with this too. I have added to catalog/controller/common/footer.php
Code: Select all
$this->children = array(
'module/language'
);
Code: Select all
<?php echo $language; ?>
But nothing happens. Something is missing. What can that be?
EDIT:
In the catalog/controller/module/language.php I've have added
Code: Select all
echo '<!-- language controller running -->';
And it's NOT.
It echoes this out when
Code: Select all
$this->children = array(
'module/language'
);
Who is online
Users browsing this forum: No registered users and 5 guests