Post by testATtest » Thu Jul 18, 2013 5:12 pm

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.

Newbie

Posts

Joined
Sun Jan 27, 2013 7:07 pm

Post by pprmkr » Thu Jul 18, 2013 5:45 pm

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 } ?>

User avatar
Active Member

Posts

Joined
Sat Jan 08, 2011 11:05 pm
Location - Netherlands

Post by testATtest » Thu Jul 18, 2013 8:06 pm

Perfect ! Thx. Similar solution works in currency module. THX a lot!

Code: Select all

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

Newbie

Posts

Joined
Sun Jan 27, 2013 7:07 pm
Who is online

Users browsing this forum: No registered users and 19 guests