Post by dangkhoaweb » Thu Jan 14, 2010 11:12 am

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

Newbie

Posts

Joined
Wed Jan 13, 2010 11:34 am

Post by Qphoria » Thu Jan 14, 2010 12:58 pm

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by i2Paq » Thu Jan 14, 2010 4:01 pm

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...

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by daysgonebyantiques » Sun Jan 17, 2010 9:31 pm

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.

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!


Active Member

Posts

Joined
Sun Dec 13, 2009 10:02 pm


Post by OSWorX » Tue Jan 19, 2010 5:55 am

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 ) { ?>

Full Stack Web Developer :: Dedicated OpenCart Development & Support DACH Region
Contact for Custom Work / Fast Support.


User avatar
Administrator

Posts

Joined
Mon Jan 11, 2010 10:52 pm
Location - Austria

Post by daysgonebyantiques » Tue Jan 19, 2010 7:55 am

Wonderful, thank you!

Days Gone By Antiques & Collectibles
FREE Continental US Shipping! Great gift ideas for ANY time of year!


Active Member

Posts

Joined
Sun Dec 13, 2009 10:02 pm

Who is online

Users browsing this forum: No registered users and 11 guests