Results 1 to 6 of 6
  1. #1
    Join Date
    Aug 2006
    Location
    Brisbane, Australia
    Posts
    206
    Plugin Contributions
    2

    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.
    Time is but an illusion, there is only "now"!
    www.inekesfashions.com.au
    www.kalaxcreations.com

  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
    58,283
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    Brisbane, Australia
    Posts
    206
    Plugin Contributions
    2

    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
    Time is but an illusion, there is only "now"!
    www.inekesfashions.com.au
    www.kalaxcreations.com

  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
    Brisbane, Australia
    Posts
    206
    Plugin Contributions
    2

    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
    Time is but an illusion, there is only "now"!
    www.inekesfashions.com.au
    www.kalaxcreations.com

 

 

Similar Threads

  1. Ultimate SEO URLs rewriting + language and currencie in header
    By alf in forum All Other Contributions/Addons
    Replies: 0
    Last Post: 27 Feb 2007, 11:50 AM
  2. Installed language pack - header not displaying well
    By Peace Freak in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 13 Sep 2006, 08:47 AM
  3. Non-selected language header link
    By magicpants in forum Basic Configuration
    Replies: 1
    Last Post: 12 May 2006, 10:52 AM

Bookmarks

Posting Permissions

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