Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Show Category Counts

Show Category Counts

Locked

Views: 1,605

Results 1 to 3 of 3
This thread is locked. New replies are disabled.
17 Sep 2008, 4:28 AM
#1
vincemaverick avatar

vincemaverick

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Show Category Counts

I had to edit the file "tpl_modules_categories_tabs.php" by copying it to my template folder.

Here's what is looks like:

<?php
include(DIR_WS_MODULES . zen_get_module_directory(FILENAME_CATEGORIES_TABS));

#DISPLAY CATEGORIES
if(CATEGORIES_TABS_STATUS == '1' && sizeof($links_list) >= 1)
{
?>
<ul>
	<?php
	#DISPLAY EVERY CATEGORY
	for($counter = 0, $links_list_size = sizeof($links_list); $counter < $links_list_size; $counter ++)
	{ ?>
		<li><?php echo $links_list[$counter];?></li>
	<?php
	}
	?>
</ul>
<?php
}
?>

Now I don't see the category counts even though the show category count thing has been enabled. How do I fix this?

17 Sep 2008, 4:44 AM
#2
vincemaverick avatar

vincemaverick

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Show Category Counts

Am I using the right module?

<?php require($template->get_template_dir('tpl_modules_categories_tabs.php',DIR_WS_TEMPLATE, $current_page_base,'templates'). '/tpl_modules_categories_tabs.php'); ?>
17 Sep 2008, 10:28 AM
#3
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Location:
UK
Posts:
430
Plugin Contributions:
0

Re: Show Category Counts

I beleive the category count only displays in the categories sidebox.. the category tabs are the horizontal list of links and these do not include the count...