In categories.php (admin) i have the "goto" dropdown and every categories is below each other....
in earlier version of oscommerce i used the function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $categories = []) with spacing = " > " for example and thenn the dropdown looks better as we see the structure.
in general.php i see that the spacing parameter is not used anymore as it's
Code: Select all
function tep_get_category_tree($parent_id = '0', $spacing = '', $exclude = '', $categories = []) {
$category_tree =& Guarantor::ensure_global('category_tree');
if ( (count($categories) < 1) && ($exclude !== '0') ) {
$categories[] = ['id' => '0', 'text' => TEXT_TOP];
}
return $category_tree->get_selections($categories, $parent_id);
}like
top
subcat1
subcat2
top2
subcat3
subsubcat4
like this?