Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding link to a page out of osCOmmerce in Categories box


Guest

Recommended Posts

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

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

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

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

Archived

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

×
×
  • Create New...