Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Category->Sub-Category Counts

Category->Sub-Category Counts

Locked

Views: 3,253

Results 41 to 42 of 42
This thread is locked. New replies are disabled.
14 Oct 2010, 3:35 PM
#41
fontaholic avatar

fontaholic

Zen Follower

Join Date:
Jun 2008
Posts:
111
Plugin Contributions:
0

Category->Sub-Category Counts

kobra:

admin > config > layout settings > Categories Separator between the Category Name and Count >

Default

->

> Change to
> ```
<br/> ->

ah. well. that works for the side column, but not for the center column code that glenn helped me with upthread. thanks though.

31 Oct 2010, 9:27 PM
#42
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: Category->Sub-Category Counts

Emily is referring to the added count in the category listing, not the sidebox.

Span is by default an inline element in HTML, and that may be hindering the break from working (not sure). Move the <br /> outside of the span:

'<br /><span class="catCount">'```php
$cat_count = zen_count_products_in_category($categories->fields['categories_id'])? '<br /><span class="catCount">' . CATEGORIES_COUNT_PREFIX . zen_count_products_in_category($categories->fields['categories_id']) . CATEGORIES_COUNT_SUFFIX . '</span>': '';