Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding small arrows to categories


soccermeister

Recommended Posts

Posted

I've looked through the add-ons and I've searched the forums but I can't seem to find an answer. I'm trying to figure out how to add a small arrow to each of the category names (which I assume is done in categories.php). I have three categories and numerous sub-categories. It's kinda hard to read when it's all bunched together. How can I add a GIF (of an arrow in this case) right before the names of each categories in the categories box? I'm trying to simulate the categories at this site: My link

 

Thank you.

Posted

I managed to get this fixed. Here's the code (in bold) for categories.php for those that may need it in the future:

 

$categories_string .= '<a href="';

 

if ($tree[$counter]['parent'] == 0) {

$cPath_new = 'cPath=' . $counter;

} else {

$cPath_new = 'cPath=' . $tree[$counter]['path'];

}

 

$categories_string .= tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">';

if (tep_has_category_subcategories($counter)) {

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

}

else {

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

}

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

$categories_string .= '<b>';

}

Posted

I've looked through the add-ons and I've searched the forums but I can't seem to find an answer. I'm trying to figure out how to add a small arrow to each of the category names (which I assume is done in categories.php). I have three categories and numerous sub-categories. It's kinda hard to read when it's all bunched together. How can I add a GIF (of an arrow in this case) right before the names of each categories in the categories box? I'm trying to simulate the categories at this site: My link

 

Thank you.

Great Categories add on may do it for you.

Archived

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

×
×
  • Create New...