Ok, I have applied as per your instructions - but the printer names are still appearing as before. Details of the code below:
// subheadings - gjh42 20080617
$section_check = $categories->fields['categories_name'];
$section_header = '';
if (in_array($section_check,explode(",",'HP Deskjet,HP Digital,HP Fax,HP Officejet,HP Photo,HP PSC'))) {
$col = 0;
$row ++;
switch ($section_check) {
case "HP Deskjet":
$section_header = 'Hewlett Packard Deskjet Series Printer Cartridges';
break;
case "HP Digital":
$section_header = 'HP Digital Copier Cartridges';
break;
case "HP Fax":
$section_header = 'HP Fax Printer Cartridges';
break;
case "HP Officejet":
$section_header = 'HP Officejet Ink Cartridges';
break;
case "HP Photo":
$section_header = 'HP Photosmart Printer Inks';
break;
case "HP PSC":
$section_header = 'HP Printer/Scanner/Copier Cartridges';
break;
case "HP Cartridges":
$section_header = 'HP Ink Cartridges by References';
break;
} //switch
$list_box_contents[$row][$col] = array('params' => 'class="sectionHeader" style="width: 100%;"',
'text' => $section_header);
$row ++;
} //if
// /subheadings
$list_box_contents[$row][$col] = array('params' => 'class="categoryListBoxContents"' . ' ' . 'style="width:' . $col_width . '%;"',
'text' => '<a href="' . zen_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . zen_image(DIR_WS_IMAGES . $categories->fields['categories_image'], $categories->fields['categories_name'], SUBCATEGORY_IMAGE_WIDTH, SUBCATEGORY_IMAGE_HEIGHT) . '<br />' . $categories->fields['categories_name'] . '</a>');
Can you see where I've gone wrong?





