Forums / General Questions / Info sidebox link to t&c html page instaed of zc default

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

Locked

Started by jvanree on 24 Oct 2008, 11:56 AM · Views: 1,181

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
24 Oct 2008, 11:56 AM
#1
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

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 :blush: 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.

24 Oct 2008, 1:07 PM
#2
boinkit avatar

boinkit

New Zenner

Join Date:
Aug 2007
Location:
England
Posts:
65
Plugin Contributions:
0

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.

24 Oct 2008, 1:10 PM
#3
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

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.

26 Oct 2008, 9:01 PM
#4
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

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.

26 Oct 2008, 11:38 PM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

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

jvanree:

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

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

  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

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

27 Oct 2008, 6:32 AM
#6
jvanree avatar

jvanree

Zen Follower

Join Date:
Mar 2008
Location:
Gouda, Netherlands
Posts:
211
Plugin Contributions:
0

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.

28 Oct 2008, 9:05 AM
#7
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

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

jvanree:

This is awesome!!!! Thank you very very much!!!!

Let me know how it works out

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.