Results 1 to 10 of 240

Hybrid View

  1. #1
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Css Flyout Categories Menu troubles

    Code:
    div#nav-cat ul ul {position: absolute; top: 0; left: 140px;
    display: none;}
    change to:
    Code:
    div#nav-cat ul ul {position: absolute; top: 0; left: -140px;
    display: none;}
    .

    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.

  2. #2
    Join Date
    Aug 2006
    Posts
    166
    Plugin Contributions
    2

    Default Re: Css Flyout Categories Menu troubles

    Quote Originally Posted by DrByte View Post
    Code:
    div#nav-cat ul ul {position: absolute; top: 0; left: 140px;
    display: none;}
    change to:
    Code:
    div#nav-cat ul ul {position: absolute; top: 0; left: -140px;
    display: none;}
    YOU ARE NICE DrByte
    totally on zen 1.3.5 and now on 1.3.6, I spent more than 3 fulltime days(because I am very newbie) to solve this problem and I did not want disturb the zen peroples with my questions, and lastly I wanted to abandone it,
    its okey now, although there is still no answer to the common question of some other peoples also me about putting the counts of products in flyout , I think there can not be done otherwise there came minimum one answer for it.

    thanks again

  3. #3
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    Default Re: Css Flyout Categories Menu troubles

    Displaying Category Counts

    /includes/classes/categories_ul_generator.php
    approx line 81 replace:
    Code:
             $result .= $category['name'];
             $result .= '</a>';
    with this:
    Code:
             $result .= $category['name'];
             $catcount = zen_count_products_in_category($category_id);
             if (SHOW_COUNTS == 'true') {
               if ((CATEGORIES_COUNT_ZERO == '1' and $catcount == 0) or $catcount >= 1) {
                 $result .= CATEGORIES_COUNT_PREFIX . $catcount . CATEGORIES_COUNT_SUFFIX;
               }
             }
             $result .= '</a>';
    Category count settings in Admin->Config->Layout Settings will still be used to control display.
    .

    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.

  4. #4
    Join Date
    Aug 2006
    Posts
    166
    Plugin Contributions
    2

    Default Re: Css Flyout Categories Menu troubles

    Quote Originally Posted by DrByte View Post
    Displaying Category Counts

    /includes/classes/categories_ul_generator.php
    approx line 81 replace:
    Code:
             $result .= $category['name'];
             $result .= '</a>';
    with this:
    Code:
             $result .= $category['name'];
             $catcount = zen_count_products_in_category($category_id);
             if (SHOW_COUNTS == 'true') {
               if ((CATEGORIES_COUNT_ZERO == '1' and $catcount == 0) or $catcount >= 1) {
                 $result .= CATEGORIES_COUNT_PREFIX . $catcount . CATEGORIES_COUNT_SUFFIX;
               }
             }
             $result .= '</a>';
    Category count settings in Admin->Config->Layout Settings will still be used to control display.
    ooooof
    You are very rapid DrByte
    I am still busy to change font color in flyout category sidebox about 2 hours without any results, and YOU in between wrote the new code for counts of category.
    Let me say you Bravo.
    very thanks

 

 

Similar Threads

  1. CSS flyout menu- categories box
    By partyparcels in forum Addon Sideboxes
    Replies: 3
    Last Post: 13 Apr 2008, 12:06 AM
  2. CSS Flyout Menu - separate to two main categories
    By TomCZ in forum General Questions
    Replies: 0
    Last Post: 17 Mar 2007, 08:07 PM
  3. CSS Categories Flyout Menu - ie/firefox display problem
    By Still Crazy in forum Addon Sideboxes
    Replies: 4
    Last Post: 18 Dec 2006, 03:30 AM

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