Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not display sub-catagories?


onedownfiveup

Recommended Posts

Posted

I know it's been posted and I have spent 10 min searching and can't find it. What code will allow me not to have it display the sub catagories in the catalog infobox

Posted

you can amend /includes/boxes/categories.php

 

look for and remove

if (tep_has_category_subcategories($counter)) {

$categories_string .= tep_image(DIR_WS_IMAGES . 'block.gif' . '', '');

}

else {

$categories_string .= tep_image(DIR_WS_IMAGES . 'block_red.gif', '');

}

*/

if (!empty($categories_left_spaces)) {

$categories_string .= tep_image(DIR_WS_IMAGES . 'block_red.gif' . '', '');

}

else {

$categories_string .= tep_image(DIR_WS_IMAGES . 'block.gif', '');

}

if (isset($cPath_array) && in_array($counter, $cPath_array)) {

$categories_string .= '';

}

 

*if ($cat_name == $tree[$counter]['name']) {

$categories_string .= '<span class="errorText">';

}* not sure about this bit

 

ok your images will be different gif then mine but will be same code

Archived

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

×
×
  • Create New...