If this is your first visit, check our documentation. To post, register or login.
Forums / All Other Contributions/Addons / Language/Currency Links in Header

Language/Currency Links in Header

Started by bunyip on 1 Jun 2006, 7:44 AM · Views: 47,439

Results 1 to 20 of 121
1 Jun 2006, 7:44 AM
#1
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Language/Currency Links in Header

In response to a post asking how to put language flags/currency links in the header, I developed a mod that will allow you to do that. It allows the display of the language icons (flags) and/or currency symbols as links in the header navigation section so that the customer can select language/currency from there.

The Language and Currency links can be turned on/off independently of each other from the Admin panel. The currency symbol is that set for the currency from Admin: the left symbol is used if one exists, otherwise the right symbol is used (as in the case of the Euro).

The module (coded for Zen Cart v1.3.0 +) has been submitted to the downloads section, here

Neville
An assumption is what you arrive at when you get tired of thinking...

1 Jun 2006, 8:07 AM
#2
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Language/Currency Links in Header

Forgot to add - I left in the code from the currencies and languages sideboxes that prevents the links from showing on checkout pages. I'm sure the development team had a good reason for doing that, so I just left it in.

Neville
An assumption is what you arrive at when you get tired of thinking...

1 Jun 2006, 8:49 AM
#3
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: Language/Currency Links in Header

Downloaded, installed, working fine

I left in the code from the currencies and languages sideboxes that prevents the links from showing on checkout pages. I'm sure the development team had a good reason for doing that, so I just left it in.
Also checked feature above, working correctly.
Great contribution, thank you
:smile:

Dezina ZenCart Templates
Please do not PM for support queries..Post in forums..help others

1 Jun 2006, 10:08 AM
#4
heathenmagic avatar

heathenmagic

Totally Zenned

Join Date:
May 2005
Location:
England
Posts:
733
Plugin Contributions:
0

Re: Language/Currency Links in Header

Hello all,

I can confirm that this mod works on my site.

Just a quick maybe stupid question, which css file and where is it best to place the css parts?

#navCurrenciesWrapper a {
color: #ffffff;
text-decoration: none;
}

#navCurrenciesWrapper a:hover {
color: #000000;
text-decoration: none;
}

I tried stylesheet_new and stylesheet_old and it messed up the site. Any help would be gratefully appreciated.

Regards,

Russ

1 Jun 2006, 1:54 PM
#5
bunyip avatar

bunyip

Totally Zenned

Join Date:
Sep 2004
Location:
Western Massachusetts
Posts:
2,361
Plugin Contributions:
1

Re: Language/Currency Links in Header

it should go into your main override stylesheet, although really it can go into any sheet that gets auto-loaded. There's nothing in that style code that will mess up a site.

Neville
An assumption is what you arrive at when you get tired of thinking...

19 Jun 2006, 1:02 PM
#6
namasa avatar

namasa

New Zenner

Join Date:
May 2006
Posts:
31
Plugin Contributions:
0

Re: Language/Currency Links in Header

bunyip,

Thank you for this contribution. Excellent work and just what I've been looking for! I do have a question for you. At this point, the language flags are next to the "Search" box on the right. I would like to position the flags right in the center of the header (both horizontally and vertically). What would be the best way to get that result? Thank you!:thumbsup:

13 Aug 2006, 9:49 AM
#7
stjude avatar

stjude

New Zenner

Join Date:
Jun 2006
Posts:
37
Plugin Contributions:
0

Re: Language/Currency Links in Header

Great mod - I wanted these in the header from the start but just found your contribution yesterday.

I can't seem to get them lined up with the main nav. Tried switching placement of the code both in tpl_header.php and the style sheet. Even tried using a - top margin, but it just won't budge.

What am I doing wrong?

http://judysgems.com/ZenCart/

Judy

6 Nov 2006, 7:09 PM
#8
gwaitsi avatar

gwaitsi

New Zenner

Join Date:
Oct 2006
Posts:
48
Plugin Contributions:
0

Re: Language/Currency Links in Header

Great mod, but i have a small problem.

I need the first flag to be in about 50px from the right. I tried using Margin and Padding in the stylesheet and got the same results with both.

If i use either, the first flag starts 50px in, but the 2nd flag is also 50px from the first flag.

I need the 1st flag 50px in and the 2nd and 3rd flags a few px separation.

Also, i can't get the flag to start a few px lower in the header. no matter margin or padding, it doesn't change higher or lower in position.

can you help please

22 Jan 2007, 1:42 AM
#9
intelcos avatar

intelcos

Totally Zenned

Join Date:
Apr 2004
Location:
Montreal
Posts:
584
Plugin Contributions:
0

Re: Language/Currency Links in Header

Is there a way for this to give a title tag of the currency or use the currency name in addition to the symbol?

Works fine on 1.3.7 by the way, not using the css code supplied, just code placement and looks fine. I also corrected it so as to validate found in the tpl_header_language file.(change absmiddle to middle)

IntelCos

31 Mar 2007, 4:07 PM
#10
tmontana avatar

tmontana

New Zenner

Join Date:
Feb 2007
Posts:
33
Plugin Contributions:
0

Re: Language/Currency Links in Header

Has anyone yet found/posted a solution on how to change the code that the currency code appears instead of the currency symbol??

I saw it on a ZC live site (which I unfortunately cannot remember), so it works... but how?

Thx for help.

T.

31 Mar 2007, 7:44 PM
#11
tmontana avatar

tmontana

New Zenner

Join Date:
Feb 2007
Posts:
33
Plugin Contributions:
0

Re: Language/Currency Links in Header

Another problem:

Using the magnify option in IE7 (lower right corner), the currency symbols mix up.

Screenshots included of

100%
125%
150%

Help is greatly appreciated. Thx.

T.

3 Aug 2007, 5:12 PM
#12
homicide avatar

homicide

New Zenner

Join Date:
Jul 2007
Posts:
18
Plugin Contributions:
0

Re: Language/Currency Links in Header

TMontana:

Has anyone yet found/posted a solution on how to change the code that the currency code appears instead of the currency symbol??

I saw it on a ZC live site (which I unfortunately cannot remember), so it works... but how?

Thx for help.

T.

I have done this with my site

http://shop.dgbremner.com

Example CAD

1 Admin-->Localization --> Currencies

2 Edit the symbol left to display $

3 Edit the symbol right to display  CAD, " " will add a space after your prices then the CAD, so customers know what currency they are dealing with during shopping.

4 do this with all the other currencies you wish to use.

5 go to shop/includes/modules/header_currencies.php and edit it to look like this:

$currencies_array[] = array('id' => $key, 'text' => (zen_not_null($value['symbol_right']) ? $value['symbol_right'] : $value['symbol_right']) );

That will display the CAD instead of the $.

9 Sep 2007, 11:00 PM
#13
dvasdekis avatar

dvasdekis

New Zenner

Join Date:
Nov 2006
Posts:
70
Plugin Contributions:
0

Re: Language/Currency Links in Header

I'd love to figure out how to replace the text with images. In my case, I have 2 currencies, and I need one image displayed when the currency is not selected and another displayed when the currency is selected.

Headsonic.com.au - Headphones and Microphones for Australians

29 Jan 2008, 6:15 PM
#14
dealbyethan_com avatar

dealbyethan_com

Totally Zenned

Join Date:
Dec 2005
Location:
Perth, Western Australia, Australia
Posts:
782
Plugin Contributions:
0

Re: Language/Currency Links in Header

I am also looking for replacing the currency symbol text with images. Does anyone know how to do that? Please advise. Thank you.

**The Team Behind DealByEthan.com | **Curating unique finds for a discerning community. Committed to a seamless and inspiring shopping experience. *Connect with us: *https://linktr.ee/dealbyethan

11 Apr 2008, 3:59 PM
#15
msatkn avatar

msatkn

New Zenner

Join Date:
Mar 2008
Posts:
32
Plugin Contributions:
0

Re: Language/Currency Links in Header

How can I highlight the active or selected currency text in the header?

I am using the Currency/Language mod provided by Bunyip.

Thanks.

17 Apr 2008, 7:22 PM
#16
joerod avatar

joerod

New Zenner

Join Date:
Apr 2008
Posts:
4
Plugin Contributions:
0

Re: Language/Currency Links in Header

this mod is great! I'd like to use the word english rather then have a flag is this possible?

22 May 2008, 8:28 AM
#17
nev avatar

nev

New Zenner

Join Date:
Nov 2007
Location:
Canada
Posts:
49
Plugin Contributions:
0

Re: Language/Currency Links in Header

joerod:

this mod is great! I'd like to use the word english rather then have a flag is this possible?

i'd like the same thing, can someone help with how to do this?

thanks
nev

28 May 2008, 2:56 AM
#18
marcwon avatar

marcwon

New Zenner

Join Date:
May 2008
Posts:
3
Plugin Contributions:
0

Re: Language/Currency Links in Header

Same here... let's say I have both english and french languages installed. I would like to have the word link "English" when the site is currently showing in french, and vice-versa.

Is this possible?

Thanks in advance!

18 Jun 2008, 3:50 PM
#19
joerod avatar

joerod

New Zenner

Join Date:
Apr 2008
Posts:
4
Plugin Contributions:
0

Re: Language/Currency Links in Header

anyone have any ideas on this? would be a great addition to this great mod, thanks in advance!

16 Sep 2008, 11:01 PM
#20
gleb486 avatar

gleb486

New Zenner

Join Date:
Aug 2008
Posts:
19
Plugin Contributions:
0

Re: Language/Currency Links in Header

Hello.
I've uloaded the files to the root directory and added the code to the tpl_header.php but the mod does not show up. I use CherryZen. Where should this mod be turned on/of in the Amin?