Page 1 of 1

Hiding selected language and currency

Posted: Thu Jul 18, 2013 5:12 pm
by testATtest
Hi, in my template i have a dropdown list of languages. Selected language appears in the list of other languages ex.: [EN] + [RU][EN][DE] how to disable/hide double lang from list? This same solution can be used in currency select.

Re: Hiding selected language and currency

Posted: Thu Jul 18, 2013 5:45 pm
by pprmkr
Edit catalog/view/theme/YOUR_THEME/module/language.tpl

After:

Code: Select all

<?php foreach ($languages as $language) { ?>
Add:

Code: Select all

<?php if ($language['code'] != $this->session->data['language']) { ?>
Before:

Code: Select all

<?php } ?>
Add:

Code: Select all

<?php } ?>

Re: Hiding selected language and currency

Posted: Thu Jul 18, 2013 8:06 pm
by testATtest
Perfect ! Thx. Similar solution works in currency module. THX a lot!

Code: Select all

<?php if ($currency['code'] != $this->session->data['currency']) { ?>