If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / Addon Sideboxes / Category Counts with CSS Flyout Menu

Category Counts with CSS Flyout Menu

Started by dlwwalton on 30 Aug 2012, 10:43 PM · Views: 1,243

Results 1 to 4 of 4
30 Aug 2012, 10:43 PM
#1
dlwwalton avatar

dlwwalton

New Zenner

Join Date:
Jul 2012
Posts:
40
Plugin Contributions:
0

Post #1 by dlwwalton

I am running Zencart V1.5 and installed CSS Flyout Menu. I wanted to be able to show category counts. I ran across this thread http://www.zen-cart.com/showthread.php?35992-Css-Flyout-Categories-Menu-troubles&p=287614#post287614. by DrByte. I added it to /includes/classes/categories_ul_generator.php. It works perfectly. It shows the category counts at the Main Category and all sub categories as well. I was hoping that I could exclude the category counts from the main category and only show it on the subcategories menus. This is a link to my site to show what I am talking about http://www.usaofficesupplies.com/oemsupplies.

Any help would be appreciated..

Thanks in advance

31 Aug 2012, 8:10 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #2 by drbyte

To remove the display of counts from ALL top-level categories, change the following (taken from the post quoted above): $result .= CATEGORIES_COUNT_PREFIX . $catcount . CATEGORIES_COUNT_SUFFIX;to ```
[B]if ($level > 0) [/B]$result .= CATEGORIES_COUNT_PREFIX . $catcount . CATEGORIES_COUNT_SUFFIX;

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

31 Aug 2012, 10:54 PM
#3
dlwwalton avatar

dlwwalton

New Zenner

Join Date:
Jul 2012
Posts:
40
Plugin Contributions:
0

Post #3 by dlwwalton

DrByte you are the best. I like this look better for my site.. Thank you so very much for your time.

1 Sep 2012, 12:07 AM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Glad I was able to help. :)

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.