Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories with <ul> tag


yusuf84

Recommended Posts

Posted

i want categories with <ul> tag . I made the changes for separate boxes for each top category. But i couldnt find the code which produces table, tr,td tags because i want to change them for ul listing. I have no clue where i will start.

 

 

<ul>

<h3>categories1</h3>

<li>sub cat.</li>

<li>sub cat.</li>

...

<ul/>

 

<ul>

<h3>categories2</h3>

<li>sub cat.</li>

<li>sub cat.</li>

...

</ul>

.

.

.

Posted

you edit categories.php.. if I'll have time I'll post some instructions otherwise search contribution section for menus..

Posted
you edit categories.php.. if I'll have time I'll post some instructions otherwise search contribution section for menus..

 

I'll be waiting your instructions...

Posted

here we go, open categories.php in includes/boxes and do next:

 

1. find global $tree, $categories_string, $cPath_array; and add $categories_string .= '<li>'; under it. Remove or comment out

 

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

$categories_string .= "  ";

}

 

2. find $categories_string .= '<br>'; and replace with $categories_string .= '</li>';

 

3. find new infoBoxHeading($info_box_contents, true, false); and under this you should see $categories_string = '';, replace $categories_string = ''; with $categories_string .= '<ul>';

 

4. find tep_show_category($first_element); and under this add $categories_string .= '</ul>';

 

and you should have nice listing. now google it for more help with optimization...

Archived

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

×
×
  • Create New...