Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.


This topic is now archived and is closed to further replies.


how to link a new box

Recommended Posts

Hi i just created a new box to display our credit card facilities, however i want to link it to a html file for further information. WHich file do i link it too? Or any ideas thanks.


eg site at http://www.itelectrical.com/catalog/ bottom right hand corner We Proudly Accept

i want to link it to this htm file http://www.itelectrical.com/catalog/images/payment.htm


ie which files do i edit








Share this post

Link to post
Share on other sites

catalog/includes/filenames.php is the correct file to "define" which page to open up. However, you might consider creating it as a php file to display in the main "viewing area" of the cart. As a htm file, unless you put in nav links to the rest of the site, users will have to use their browser's back button. Alternatively, you could set it up to open in a new window in the catalog/includes/boxes/card.php file.

Share this post

Link to post
Share on other sites

thanks cindy.

I have the link now but unfortunately it does not open the page.


This file is in includes\boxes\card.php


<!-- Card Info Box //-->




$info_box_contents = array();

$info_box_contents[] = array('align' => 'left',



new infoBoxHeading($info_box_contents, false, false);


$info_box_contents = array();

$info_box_contents[] = array('align' => 'center',

'text' => '<a href="' . tep_href_link(FILENAME_CARD) .'">'. tep_image(DIR_WS_IMAGES . 'credit_cards.gif'));


new infoBox($info_box_contents);



<!-- card_eof //-->




This file I created at english\card.php which is basic information.


did i miss something in the above code

Share this post

Link to post
Share on other sites

text' => '<a href="' . tep_href_link(FILENAME_CARD) .'">'. tep_image(DIR_WS_IMAGES . 'credit_cards.gif'));

should read

text' => '<a href="' . tep_href_link(FILENAME_CARD) .'">'. tep_image(DIR_WS_IMAGES . 'credit_cards.gif') . '</a>');


At least I think. There isn't a hyperlink closer in there. Change that and see if it does the trick.

Share this post

Link to post
Share on other sites