Post by bojler » Tue Sep 22, 2009 8:13 pm

Hello,
first, let me say thank you all, who are creating and supporting this great project Image

I really tried to find solution to my problem all around the forums, but without luck. So here is my problem:

I want to move the language selector into Currency module. Basically, I want the language and currency switchers in one box (module).

Can anyone help me please? I do not understand php, and by trying to move
<?php echo $language; ?>
from catalog/view/theme/default/template/common/header.tpl into catalog/view/theme/default/template/module/currency.tpl just dont work. I get this error message:
Notice: Undefined variable: language in /httpd/html/x/www/catalog/view/theme/default/template/module/currency.tpl on line 5
Can anyone help me solve this?

Thank you very much in advance for your time!

Newbie

Posts

Joined
Tue Sep 22, 2009 8:05 pm

Post by nosleephotel » Fri Sep 25, 2009 12:34 am

bojler, you may find an answer to what you're looking for. i had a similar request: http://forum.opencart.com/viewtopic.php ... 24&start=0

User avatar
New member

Posts

Joined
Sat Sep 19, 2009 5:25 am
Location - Los Angeles, CA

Post by bojler » Tue Sep 29, 2009 7:12 pm

Thanks for the reply nosleephotel, but i still dont have luck.

I tried to add

Code: Select all

$this->language->load('common/header');
from header.php to currency.php, but still same error after editing template files.

Anyone? Please.

Newbie

Posts

Joined
Tue Sep 22, 2009 8:05 pm

Post by nosleephotel » Tue Sep 29, 2009 11:29 pm

just a shot in the dark but what about putting:

Code: Select all

$this->children = array(
			'common/language',
			'common/search'
		);

User avatar
New member

Posts

Joined
Sat Sep 19, 2009 5:25 am
Location - Los Angeles, CA
Who is online

Users browsing this forum: No registered users and 3 guests