Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

categories with <ul> tag


yusuf84

Recommended Posts

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>

.

.

.

Link to comment
Share on other sites

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...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...