Forums / General Questions / Different Header for different Language?

Different Header for different Language?

Locked

Started by goshawk on 8 Apr 2007, 5:08 AM · Views: 1,400

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
8 Apr 2007, 5:08 AM
#1
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Different Header for different Language?

Hi,

Due to the growing number of products and categories, my sidebar is getting a little less user friendly.

I am currently designing a navigation system in my header (flash). This ofcourse will not change the language automatically as the sidebar does.

Is it possible to call a different header when the customer selects another language?

Many thanks,

Goshawk.

Time is but an illusion, there is only "now"!

18 Apr 2007, 11:56 PM
#2
permissiontopost avatar

permissiontopost

New Zenner

Join Date:
Mar 2007
Posts:
9
Plugin Contributions:
0

Re: Different Header for different Language?

I was wanting to do the same thing. I have found switching the templates and switching the header for different catagories. Does anyone have an idea how to do this

23 Apr 2007, 8:47 PM
#3
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,511
Plugin Contributions:
176

Re: Different Header for different Language?

You will have to do some custom coding to make that happen.

Key: You can determine the current language selection by checking the value of the $_SESSION['language'] or $_SESSION['languages_code'] variables, and then take action accordingly.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

23 Apr 2007, 9:26 PM
#4
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Different Header for different Language?

DrByte:

You will have to do some custom coding to make that happen.

Key: You can determine the current language selection by checking the value of the $_SESSION['language'] or $_SESSION['languages_code'] variables, and then take action accordingly.

Thank you for your reply DrByte,
I will hve a look at that at a later stage. For now i have been able to install the css drop down menu, that has made the site look a lot more organised. Though that too needs a little more modifying.

Goshawk

Time is but an illusion, there is only "now"!

10 Sep 2007, 9:19 AM
#5
thomasw98 avatar

thomasw98

Zen Follower

Join Date:
Aug 2007
Location:
Eugene, OR
Posts:
166
Plugin Contributions:
0

Re: Different Header for different Language?

DrByte:

You will have to do some custom coding to make that happen.

Key: You can determine the current language selection by checking the value of the $_SESSION['language'] or $_SESSION['languages_code'] variables, and then take action accordingly.

Based on your suggestion, I tested the following, and it worked:

<?php if ($_SESSION['language'] == 'schinese') { echo "hellohellohello"; } else { echo "monkeymonkey"; } ?>

So now I will add the links and layout that I want for the Chinese visitors into the code above instead of the line "echo "hellohellohello";" and I will add the links and layout that I want for English language visitors instead of the line "echo "monkeymonkey";"

10 Sep 2007, 9:28 AM
#6
goshawk avatar

goshawk

Zen Follower

Join Date:
Aug 2006
Location:
Kihikihi, New Zealand
Posts:
220
Plugin Contributions:
2

Re: Different Header for different Language?

Hi Thomas,

That's Cool!

I will give it a go when I have time to make a new flash header in the other language.

Thanks for pasting that code :smartalec:

Goshawk

Time is but an illusion, there is only "now"!