Results 1 to 6 of 6
  1. #1
    Join Date
    Jun 2006
    Posts
    86
    Plugin Contributions
    0

    Default How do I make a ZC link?

    I placed the language change link on the custom top menu and I want the link URL to change dynamically depending on the language being used. (if English the link say Spanish and vice versa). I created the difnes in both language files so the text changes correctly but I don't know how to make the link work. I used the following which just goes to the home page but I was hoping some mods to it would make it work.
    <?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">'; ?><?php echo LANGUAGE_SELECTION; ?></a>
    I figure some sort of {IF} switch may be required.

    Secondly how would I make a link in general so that when I go to SSL and click to go elswhere I don't get stuck under SSL. ie

    How would I make the above link method work for this
    index.php?main_page=page_2

  2. #2
    Join Date
    Jun 2006
    Posts
    86
    Plugin Contributions
    0

    Default Re: How do I make a ZC link?

    Maybe I should have titled this differently. How to make a switch.

  3. #3
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: How do I make a ZC link?

    I am not quite following what you want to do ... Zen Cart already switches languages from one to the other and as long as you have the translations in the correct places then the links should change automatically, unless you have hard coded them.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  4. #4
    Join Date
    Jun 2006
    Posts
    86
    Plugin Contributions
    0

    Default Re: How do I make a ZC link?

    Maybe a look at the site will help http://worldofwirelessllc.com
    On the top menu at the right there is a link the switches to spanish. When it is in spanish mode I want that link to say english and the link path switches it to english. Currently it still says spanish when in spanish mode and still links to the spanish switch

  5. #5
    Join Date
    May 2004
    Location
    Hong Kong
    Posts
    1,291
    Plugin Contributions
    1

    Default Re: How do I make a ZC link?

    I think it should return to the basic.
    And you have a related topic in below.
    Lang selector

    With the code and logic in above topic, it works without problem for langange switch.

    For further discussion or follow up, please post to the topic above if possible.

    Attached also screen capture for reference.

    .
    Attached Images Attached Images  
    A New Starter again

  6. #6
    Join Date
    Jun 2006
    Posts
    86
    Plugin Contributions
    0

    Default Re: How do I make a ZC link?

    Seethrou... once again you have provided a solution. Many thanks.

 

 

Similar Threads

  1. How to make a link depending on supplier?
    By olivqa in forum General Questions
    Replies: 1
    Last Post: 10 Feb 2010, 08:10 PM
  2. How do I make a Link ( Hotspot ) in the header?
    By milobloom in forum General Questions
    Replies: 5
    Last Post: 17 Oct 2008, 12:29 PM
  3. How to make site link to itself?
    By duquecigars in forum Templates, Stylesheets, Page Layout
    Replies: 12
    Last Post: 3 May 2008, 01:17 AM
  4. How do I make relative link?
    By Vood in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 31 Oct 2007, 04:53 PM
  5. How to make a download link?
    By nametaken in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 25 Feb 2007, 05:56 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR