I think if I understand your question, you want to display items, and then the items sub-categories.
You will need to edit the following:
locate the following in index.php (MS2) or default.php (MS1)
Quote:
<tr>
<td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<tr>
<td><?php include(DIR_WS_MODULES . FILENAME_PRODUCT_LISTING); ?></td>
</tr>
|
Then just above this you will paste the following:
Quote:
<tr>
<td>
<table border="0" width="100%" cellspacing="0" cellpadding="2"><tr>
<?php
if(isset($cPath)){
if(ereg('_',$cPath)){
$category_links=array_reverse($cPath_array);
$cat_to_search=$category_links[0];
} else{
$cat_to_search=$cPath;
}
//check to see if there are deeper sub categories within the current category
$categories_query = tep_db_query("select c.categories_id,cd.categories_name,c.categories_im age,c.parent_id from ".TABLE_CATEGORIES." c, ".TABLE_CATEGORIES_DESCRIPTION." cd where c.parent_id = '".$cat_to_search."' and c.categories_id=cd.categories_id and cd.language_id='".$languages_id."'order by sort_order ,cd.categories_name");
if(tep_db_num_rows($categories_query)>0){
$rows=0;
while($categories=tep_db_fetch_array($categories_q uery)){
$rows++;
$cPath_new=tep_get_path($categories['categories_id']);
$width=(int)(100/MAX_DISPLAY_CATEGORIES_PER_ROW).'%';
echo '<td align="center" class="smallText" style="width: ' . $width . '" valign="top"><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . tep_image(DIR_WS_IMAGES . $categories['categories_image'], $categories['categories_name']) . '</a><br><a href="' . tep_href_link(FILENAME_DEFAULT, $cPath_new) . '">' . $categories['categories_name'] . '</a> </td>' . "\n";
if((($rows/MAX_DISPLAY_CATEGORIES_PER_ROW)==floor($rows/MAX_DISPLAY_CATEGORIES_PER_ROW))&&($rows!= tep_db_num_rows($categories_query))){
echo'</tr>'."\n";
echo'<tr>'."\n";
}
}
}
}
?>
</tr>
</table>
</td>
</tr>
|
Hope this is what you were looking for.
|3ackdraft