Add Links to BoxesLast Update: 10th August, 2005
Article ID: 262



Introduction

Add link outside of osCommerce to any boxes ... we will use includes/boxes/categories.php for an example.

Add Links to Boxes

In catalog/includes/boxes/categories right before this code at the bottom:

new infoBox($info_box_contents);
?>
</td>
</tr>
< !-- categories_eof //-->



add this:

$info_box_contents[] = array('align' => 'left',
'text' => '<a href="http://www.wherever.com" target="_blank">Text for your link</a>'
);



The code from about line 138 to the end should look like this:

$info_box_contents = array();
$info_box_contents[] = array('align' => 'left',
'text' => $categories_string
);
// start of code to place link inside category box
$info_box_contents[] = array('align' => 'left',
'text' => '<a href="http://www.yourdomain.com" target="_blank">Text for your link</a>'
);
// end of code to place link inside category box
new infoBox($info_box_contents);
?>
</td>
</tr>
< !-- categories_eof //-->

 

 

Trademark Policy | Copyright Policy | Sitemap

Copyright © 2000-2005 osCommerce. All rights reserved.