Post by nicholaspowis » Wed Sep 22, 2010 7:40 pm

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.
Last edited by i2Paq on Thu Sep 23, 2010 2:03 am, edited 1 time in total.
Reason: Topic moved

Newbie

Posts

Joined
Wed Sep 22, 2010 7:33 pm

Post by nicholaspowis » Wed Sep 22, 2010 9:18 pm

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?

Newbie

Posts

Joined
Wed Sep 22, 2010 7:33 pm

Post by xonium » Wed Jan 27, 2021 6:09 am

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

Code: Select all

$this->children = array(
			'module/language'
		);
And in footer.tpl I have added:

Code: Select all

<?php echo $language; ?>
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

Code: Select all

echo '<!-- language controller running -->';
just to see if this controller is even running...
And it's NOT.

It echoes this out when

Code: Select all

$this->children = array(
			'module/language'
		);
is in catalog/controller/common/header.php but not in footer.php

Newbie

Posts

Joined
Wed Jun 09, 2010 4:32 am
Who is online

Users browsing this forum: No registered users and 27 guests