Link osCommerce infoBox Heading

The osCommerce infoBox arrows are far too small to effectively communicate a linkable area. Instead, I’d think many would just like to make the infoBox title linkable. To accomplish this do the following:

=> open file /includes/classes/boxes.php
=> find the 2 $right_corner if statements (around line 112 and 118)
=> comment these 2 if statements out
=> then add the following lines:

$right_corner = tep_image(DIR_WS_IMAGES . ‘infobox/corner_right.gif’)

$headingTitle = ”;
$headingTitle = $contents[0][‘text’];

if ($right_arrow == true) {
$headingTitle = ‘‘ . $headingTitle . ‘‘;


=> in the info_box_contents array
=> find: ‘text’ => $contents[0][‘text’]),
=> replace with: ‘text’ => $headingTitle),

That should be all there is to change the osCommerce infoBox headings to links the title instead of using the arrow.

* Note: I’d already modified this file to always print the right corner box. In any other case, keep the second right_arrow “if” statement and remove only the append of $right_arrow.

Post written by Ed Reckers

Founder and lead web development consultant at Red Bridge Internet : San Francisco WordPress Developers and Consultants.

Leave a Reply