Page 1 of 1

Language Form in header

Posted: Thu Jan 14, 2010 11:12 am
by dangkhoaweb
I think when your website is multiple-language --> need a link to switch language. If only one language is used, NO need to show this.

I change a little bit in header.tpl
From

Code: Select all

<?php if ($languages){ ?>
To

Code: Select all

<?php if (count($languages)>1) { ?>
Hope it helps

Re: Language Form in header

Posted: Thu Jan 14, 2010 12:58 pm
by Qphoria
i2paq was claiming that the currency selector hides itself when there is only one currency. I would assume the language would have done the same already.. i guess not.

Re: Language Form in header

Posted: Thu Jan 14, 2010 4:01 pm
by i2Paq
Qphoria wrote:i2paq was claiming that the currency selector hides itself when there is only one currency. I would assume the language would have done the same already.. i guess not.
That happens only when using the Dollar or Pound as on currency, using the Euro is the only currency the selector stays...

Re: Language Form in header

Posted: Sun Jan 17, 2010 9:31 pm
by daysgonebyantiques
i2Paq wrote:
Qphoria wrote:i2paq was claiming that the currency selector hides itself when there is only one currency. I would assume the language would have done the same already.. i guess not.
That happens only when using the Dollar or Pound as on currency, using the Euro is the only currency the selector stays...
I only have the Dollar as my currency and English as my language--but they both still show up in my header (the 'breadcrumb' area?). How do I get rid of them all together? I've been searching the forums and see where the question is asked, but I still can't find any instructions on how to actually do it.

Re: Language Form in header

Posted: Tue Jan 19, 2010 5:55 am
by OSWorX
To achieve the goal - displaying languages and currencies only IF there is more than one (1) - just do that (in ../catalog/view/theme/_YOUR_TEMPLATE_/template/common/header.tpl):

1. Replace

Code: Select all

<?php if ($currencies) ) { ?>
with:

Code: Select all

<?php if ( count( $currencies ) > 1 ) { ?>
2. Replace

Code: Select all

<?php if ($languages) ) { ?>
with:

Code: Select all

<?php if ( count( $languages ) > 1 ) { ?>

Re: Language Form in header

Posted: Tue Jan 19, 2010 7:55 am
by daysgonebyantiques
Wonderful, thank you!