0) { $category_depth = 'products'; // display products } else { $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . (int)$current_category_id . "'"); $category_parent = tep_db_fetch_array($category_parent_query); if ($category_parent['total'] > 0) { $category_depth = 'nested'; // navigate through the categories } else { $category_depth = 'products'; // category has no products, but display the 'no products' message } } } require('includes/languages/' . $language . '/index.php'); require('includes/template_top.php'); if ($category_depth == 'nested') { if ($messageStack->size('product_action') > 0) { echo $messageStack->output('product_action'); } ?>
getContent('index_nested'); ?>
getContent('index_products'); ?>
size('product_action') > 0) { echo $messageStack->output('product_action'); } ?>
getContent('index'); ?>