in category_tree.php is this $category_depth created:
Code: Select all
$GLOBALS['category_depth']
= (count($GLOBALS['category_tree']->get_children($GLOBALS['current_category_id'])) > 0)
? 'nested'
: 'products';and i need in different places to decide we are on a category with products or not to know if we should display filters / banners or whatever.
would it be a problem to make the category_depth the way: look if the category has products, whenn yes its index_products, if no look if it has nested categories, if yes = index_nested and if it's a empty category with no products it can also be "index_products but with 0 entries)
what you think?