I am displaying all subcategories products on the main category page using simple category tree.
But I want to also display the names of the subcategories.
I have done this using the following code:
it shows the list of subcategories but without a break. Any Ideas?Code:<?php $sub_cats = $_SESSION['category_tree']->build_category_string('', '', ' | ', $cPath, 1, false, true); if ($sub_cats != "") { echo $sub_cats; } ?>
Also I need to include a statement that will hide if category has no subcategories.
Any help would be greatly appreciated.


Reply With Quote
