Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Category Menu customization


Guest

Recommended Posts

Hi, I'm new in this community, I need some help with that.

 

I'm trying to edit the Category Menu of my store, but, I'd like to select with a background color, the main categories and the subcategories leave without the background.

 

This is a type of selection, for show more usable the category menu for the users or navigators.

 

 

Regards,

 

Arturo.

Link to comment
Share on other sites

It appears you'd need to change the fution tep_show_category in the /includes/boxes/categories.php file.

 

From:

for ($i=0; $i<$tree[$counter]['level']; $i++) {

$categories_string .= "  ";

}

 

 

 

To:

for ($a=0; $a<$foo[$counter]['level']; $a++) {

if ($a == $foo[$counter]['level']-1)

{

//$categories_string .= "<font color='#ff0000'><img src='/images/RedArrow.gif' border=0 alt=0></font>";

$categories_string .= "<font color='#ff0000'>" . tep_image(DIR_WS_IMAGES . "RedArrow.gif", "") . "</font>";

} else

{

$categories_string .= "<font color='#ff0000'>    </font>";

}

 

}

 

Dylan

Link to comment
Share on other sites

  • 4 weeks later...
Sorry Dylan, but that don't work for me this time.

I'm using the contribution Main_Categories 1.0c.

 

Regards,

 

Arturo.

Thanks Dylan!!!

I find the problem. I looked more time the code.

 

Thanks again.

 

Arturo.

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...