sumaiya Posted April 28, 2008 Posted April 28, 2008 I had this problem where the subcategories did not have a space or indent (indentation). The sub categories were coming inline with the categories. I got my solution at includes/boxes/category.php Look for line the below line or something similar: for($i=0;$i<$tree[$counter]['level'];$i++){ $categories_string .= ' ';} This is the line which causes the spacing make sure it is placed at the right location, in my case above the the following line: $categories_string .= $tree[$counter]['name']; $categories_string .= $num_prod.'</a></li>'; So the code should look like this // display category name for($i=0;$i<$tree[$counter]['level'];$i++){ $categories_string .= ' ';} $categories_string .= $tree[$counter]['name']; $categories_string .= $num_prod.'</a></li>'; Note the code in the category.php file can vary a little but this is the basic idea. I was stuck with the subcategory spacing bug for a long time, so just wish this forum could be of some help for someone in a similar situation.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.