Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Highlight current category (Category box)


Psytanium

Recommended Posts

Posted

Hello, i search the forums and tried by myself to find a solutions but with no success.

 

what i want is really simple, to highlight ONLY the category a user is currently in, in the categories box. by default, the box highlight all path of categories.

 

screen shot attached.

 

i appreciate any help.

post-244988-0-49022700-1365274891_thumb.png

Posted

i think this is the code to change, found in bm_categoies.php , but i didn't figured how:

 

 // display category name
     if (tep_has_category_subcategories($counter) && isset($cPath_array) && in_array($counter, $cPath_array)) {
    $categories_string .= '<span class="category_arrow_select"></span>';
  }else if (tep_has_category_subcategories($counter)){
    $categories_string .= '<span class="category_arrow"></span>';
  }else{
         $categories_string .= '<span class="category_arrow_end"></span>';
     }

  if (isset($cPath_array) && in_array($counter, $cPath_array)) {
    $categories_string .= '<b  style="color:#9c0000">';
  }


  $categories_string .= $tree[$counter]['name'];

  if (isset($cPath_array) && in_array($counter, $cPath_array)) {
    $categories_string .= '</b>';
  }

 

btw, osc 2.3

Posted

at least someone tell how to get the current category so ill write:

 

if ($tree[$counter]['path'] == $current_category) {

....

Posted

Spam it up laughing boy.

 

When a moderator logs on you and all your spam posts are going the way of the Dodo - EXTINCT!

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Posted

@@Psytanium

 

The last post was not directed to you.

It was directed to a spammer whose have been posts deleted.

:D

Regards

Joli

To improve is to change; to be perfect is to change often.

 

Archived

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

×
×
  • Create New...