Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Info sidebox link to t&c html page instaed of zc default

    For some reason (it's a long story and I can't explain it all in this post) I had to make 3 separate terms and conditions html files (english, dutch and german).

    They are on the same site as zc is (so http://www.ad-mineraal.nl/tcenglish.html)

    I need to replace the information sidebox default links with links to the hmtl pages.

    I've tried messing about a bit but the double slashes in the hyperlink made it think it was a comment. Further I wasn't even sure if I was editting the right file. Because I could only edit the default zc link but not language specific.

    Anyway... before making a reall mess can someone please help.

    Thank you.

    Your friendly neighbourhood php noob,

    Juliet van Ree
    Working on http://www.skull-shop.net once again.

  2. #2
    Join Date
    Aug 2007
    Location
    England
    Posts
    65
    Plugin Contributions
    0

    Default Re: Info sidebox link to t&c html page instaed of zc default

    I haven't tried this but couldn't you set up EZ-Pages to do it?
    Have 3 separate pages, and then use EZ-Pages to link to them from which ever page you want them to be on?
    Tools > EZ-Pages is where you can define them and how they behave.

  3. #3
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Info sidebox link to t&c html page instaed of zc default

    Thank you for your answer, but me and ezpages aren't the best of friends, despite of reading many articles and posts on it I still can't make it function the way it should.
    Working on http://www.skull-shop.net once again.

  4. #4
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Info sidebox link to t&c html page instaed of zc default

    Sorry for kicking this topic up but I really need to know this before monday if it is possible!

    Thank you very much in advance!
    Working on http://www.skull-shop.net once again.

  5. #5
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Info sidebox link to t&c html page instaed of zc default

    Quote Originally Posted by jvanree View Post
    Sorry for kicking this topic up but I really need to know this before monday if it is possible!

    Thank you very much in advance!
    If it were me, I'd create a new definition file:

    tc_external_link_definition.php

    The contents of the file would contain the link information
    This example is for the english html link
    PHP Code:
    <?php

    define
    ('TC_EXTERNAL_LINK''http://www.ad-mineraal.nl/tcenglish.html');

    ?>
    Save the new file to:
    includes/languages/english/extra_definitions/tc_external_link_definition.php

    includes/languages/german/extra_definitions/tc_external_link_definition.php - this file would have this link definition - define('TC_EXTERNAL_LINK', 'http://your_link.com/');

    includes/languages/german/extra_definitions/tc_external_link_definition.php - this file would have this link definition - define('TC_EXTERNAL_LINK', 'http://your_link.com/');


    You should then be able to change the TC link in the information sidebox as follows

    Code:
      if (DEFINE_CONDITIONS_STATUS <= 1) {
        $information[] = '<a href="' . zen_href_link(TC_EXTERNAL_LINK) . '">' . BOX_INFORMATION_CONDITIONS . '</a>';
    }

    Now whenever someone switches languages the appropriate external link will appear in the sidebox.

    Hope this is helpful

  6. #6
    Join Date
    Mar 2008
    Location
    Gouda, Netherlands
    Posts
    213
    Plugin Contributions
    1

    Default Re: Info sidebox link to t&c html page instaed of zc default

    This is awesome!!!! Thank you very very much!!!!
    Working on http://www.skull-shop.net once again.

  7. #7
    Join Date
    Nov 2005
    Location
    Colorado Springs, CO USA
    Posts
    7,033
    Plugin Contributions
    31

    Default Re: Info sidebox link to t&c html page instaed of zc default

    Quote Originally Posted by jvanree View Post
    This is awesome!!!! Thank you very very much!!!!
    Let me know how it works out

 

 

Similar Threads

  1. HTML Link in Product Info Page
    By moesoap in forum General Questions
    Replies: 6
    Last Post: 14 Mar 2012, 02:31 PM
  2. Easy pages horizontal menu & sidebox pages, dont link the same page
    By stefanl in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 19 May 2011, 03:09 PM
  3. Digital Download Attribute Set to Default? No more info link?
    By jenny_jane in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 12 Dec 2009, 12:18 PM
  4. HTML & Text-Only - default to HTML.
    By ceegeeaar in forum General Questions
    Replies: 3
    Last Post: 16 Aug 2007, 05:02 PM
  5. sidebox html - add image/link to paypal verified sidebox
    By wasana in forum General Questions
    Replies: 0
    Last Post: 14 Jul 2006, 04:00 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR