Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

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

  2. #2
    Join Date
    Mar 2007
    Posts
    9
    Plugin Contributions
    0

    Default 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

  3. #3
    Join Date
    Jan 2004
    Posts
    66,443
    Plugin Contributions
    279

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

  4. #4
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default Re: Different Header for different Language?

    Quote Originally Posted by DrByte View Post
    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

  5. #5
    Join Date
    Aug 2007
    Location
    Eugene, OR
    Posts
    162
    Plugin Contributions
    0

    Default Re: Different Header for different Language?

    Quote Originally Posted by DrByte View Post
    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";"

  6. #6
    Join Date
    Aug 2006
    Location
    Kihikihi, New Zealand
    Posts
    230
    Plugin Contributions
    3

    Default 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

    Goshawk

 

 

Similar Threads

  1. v151 Different price for different currency? (or language / country)
    By Cindy2010 in forum Basic Configuration
    Replies: 3
    Last Post: 10 Mar 2014, 02:04 AM
  2. I need an add-on for display different language by different ip address?
    By hunterwater1234 in forum Addon Language Packs
    Replies: 12
    Last Post: 8 Dec 2008, 12:10 AM
  3. an add-on for display different language by different ip
    By hunterwater1234 in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 30 Nov 2008, 06:47 PM
  4. Different product image for different language?
    By marksu in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 Nov 2007, 11:30 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg