Results 1 to 4 of 4
  1. #1
    Join Date
    Jul 2012
    Posts
    40
    Plugin Contributions
    0

    Default Category Counts with CSS Flyout Menu

    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.p...614#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

  2. #2
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Category Counts with CSS Flyout Menu

    To remove the display of counts from ALL top-level categories, change the following (taken from the post quoted above):
    Code:
                 $result .= CATEGORIES_COUNT_PREFIX . $catcount . CATEGORIES_COUNT_SUFFIX;
    to
    Code:
                 if ($level > 0) $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.

  3. #3
    Join Date
    Jul 2012
    Posts
    40
    Plugin Contributions
    0

    Default Re: Category Counts with CSS Flyout Menu

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

  4. #4
    Join Date
    Jan 2004
    Posts
    66,380
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Category Counts with CSS Flyout Menu

    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.

 

 

Similar Threads

  1. CSS Flyout Category Menu Show Counts
    By lloyd_borrett in forum Addon Sideboxes
    Replies: 1
    Last Post: 2 Feb 2008, 05:12 PM
  2. CSS Flyout Category Menu Problems with v1.3.5
    By lloyd_borrett in forum Addon Sideboxes
    Replies: 1
    Last Post: 16 Oct 2006, 03:33 AM
  3. CSS Flyout Category Menu - Enable
    By Rowan in forum General Questions
    Replies: 0
    Last Post: 3 Jul 2006, 05:09 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR