Chryses Posted October 20, 2007 Share Posted October 20, 2007 Hi to all, I've searched but no one solotion found :blush: I want to add some space to the category box, in includes/boxes/category.php I've found the code function tep_show_category($counter) { global $tree, $categories_string, $cPath_array; for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= " "; } $categories_string .= '<img src="images/sign_link.jpg" width="13" height="14"> <a class="m11" href="'; if ($tree[$counter]['parent'] == 0) { $cPath_new = 'cPath=' . $counter; } else { $cPath_new = 'cPath=' . $tree[$counter]['path']; } $categories_string .= tep_href_link(FILENAME_PRODUCTS, $cPath_new) . '">'; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<span style="font-weight:bold; text-decoration:underline; color:#FF0000">'; } // display category name $categories_string .= $tree[$counter]['name']; if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '</span>'; } if (tep_has_category_subcategories($counter)) { $categories_string .= '->'; } $categories_string .= '</a>'; if (SHOW_COUNTS == 'true') { $products_in_category = tep_count_products_in_category($counter); if ($products_in_category > 0) { $categories_string .= '<span style="color:#E80377"> (' . $products_in_category . ')</span>'; } } $categories_string .= '<br>'; if ($tree[$counter]['next_id'] != false) { tep_show_category($tree[$counter]['next_id']); } } ?> and I've add at the last <br> one more <br> but in this way I've this result category1 <br> subcategory <br> category2 . . . But i want to have this result category1 subcategory subcategory2 <br> category2 . . . How can I do this? Tnx a lot. Cry. Link to comment Share on other sites More sharing options...
Chryses Posted October 22, 2007 Author Share Posted October 22, 2007 no one can help me? :rolleyes: i don't know if is hard to do this mod. Cry Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.