Guest Posted February 27, 2003 Share Posted February 27, 2003 Can you add a link in the Categories box to a page "outside of osCommerce" I want to place a link to my PHP forums. I have searched the board to no avail. Right now I just have an HTML LINK sitting ontop of the categories box, but would look cleaner inside. Thanks! Dennis Link to comment Share on other sites More sharing options...
gdfwilliams Posted February 27, 2003 Share Posted February 27, 2003 in includes/boxes/categories right before new infoBox($info_box_contents); add this: $info_box_contents[] = array('align' => 'left', 'text' => '<a href="http://www.wherever.com">Text for your link</a>' ); Reply if you have any trouble. Good luck, Greg Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 Trouble. I think I messed this up. does this look correct? $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string . 'text' => '<a href="http://www.dksports.net/forums/index.php" target="new">Forums</a>' . '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '">' . 'Specials' . '</a><br>' ); new infoBox($info_box_contents); Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 Sorry for the 3 Identical replies, was having trouble with my internet connection. Link to comment Share on other sites More sharing options...
Ajeh Posted February 27, 2003 Share Posted February 27, 2003 Sorry for the 3 Identical replies, was having trouble with my internet connection. All cleaned up ... :D Link to comment Share on other sites More sharing options...
gdfwilliams Posted February 27, 2003 Share Posted February 27, 2003 Should look like this: $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $categories_string ); $info_box_contents[] = array('align' => 'left', 'text' => '<a href="http://www.dksports.net/forums/index.php" target="new">Forums</a><br>' . '<a href="' . tep_href_link(FILENAME_SPECIALS, '', 'NONSSL') . '">' . 'Specials' . '</a><br>' ); new infoBox($info_box_contents); Link to comment Share on other sites More sharing options...
Guest Posted February 27, 2003 Share Posted February 27, 2003 What would the code look like if you wanted to link to a specifc item within your catalog? Thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.