Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing "->" from Categories" box


Guest

Recommended Posts

From any page within this script, the box on the left which lists all the categories you have setup will display it in this manner:

 

"Category Name ->" along with the number of products in that category, if selected.

 

My question is, how do I remove the annoying "->" which displays? I don't like it! As an added bonus, if anyone knows how to make an image display before each category name, that would be great as well.

 

Example: I have a very small image of a right arrow. I would like the image to display, followed by a space, then the category without the default "->".

 

I've been digging through includes/boxes/categories.php to no avail.

 

Any help would be appreciated. Thanks!

Link to comment
Share on other sites

in categories.php box file remove this code

 

	if (tep_has_category_subcategories($counter)) {
  $categories_string .= '->';
}

 

few lines above that where it states:

 

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

 

add below that:

	$categories_string .= tep_image(DIR_WS_IMAGES . 'my_image.gif', 'some alt text') . ' ';

then create an image and setup its name in the line above

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...