Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Hello

I hope i am posting to the right area. I am really stuck here.

 

the way the categories.php works is that it uses the " " to indent the sub menu items and the sub sub menu items. If you change the font size in the CSS stylesheet then it changes it for all of them. I dont want that.

 

I want to be able to target the specific top level, sub level and sub sub level items so i can put a different style on each. I have found nothing like this out there. It seems to be a very legitimate request.

 

anyway i am working on a specific piece of code trying to target the sub items.

 

here it goes

 

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

$cPath_new = 'cPath=' . $counter;

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

} else if ($tree[$counter]['parent'] == 1){

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

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

} else {

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

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

}

 

It reads the top and the sub_subnav but how do i determine the sub item and not the sub sub items

 

 

I hope this makes sense..

 

thanks so much

 

TM

Posted

Anybody Out there?

Any suggestions.????

 

 

 

 

 

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

$cPath_new = 'cPath=' . $counter;

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

} else if ($tree[$counter]['parent'] == 1){

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

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

} else {

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

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

}

 

It reads the top and the sub_subnav but how do i determine the sub item and not the sub sub items

I hope this makes sense..

 

thanks so much

 

TM

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...