Page 151 of 227 FirstFirst ... 51101141149150151152153161201 ... LastLast
Results 1,501 to 1,510 of 2267
  1. #1501
    Join Date
    Jun 2009
    Posts
    617
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    autoace - The rules would generally be in a stylesheet, not a PHP file. In short, you can add #indexBody in front of a copy of any style rule, and the different properties in that (like "display: none;") will apply only to "index" pages like category and product listings.

    You could also modify the function cat_active_level_manage() in categories_dressing_functions.php.
    Can you show me how to modify the function cat_active_level_manage() in categories_dressing_functions.php to show *ONLY* the ACTIVE categories/sub-cat on the parent and sub-cat pages?

    PHP Code:
    function cat_active_level_manage($path) {
      
    $skip_cat 0;
      if (
    defined('CAT_BOX_ACTIVE_LEVEL')) {
        
    $test_level 0;
        
    $cat_box_active_level explode('|',constant('CAT_BOX_ACTIVE_LEVEL'));
        
    $cPath_top = (int)$_GET['cPath'];
        
    $path_top = (int)$path;
        
    $cat_depth substr_count($path,'_');
        
    //tests for various kinds of skipping - more can be added
        
    switch ($cat_box_active_level[0]){
          case 
    0:
            
    $test_level 1;
            break;
          case 
    1://active tree only
            
    if($cPath_top != $path_top$skip_cat 1;
            break;
          case 
    2://active only (all tops when no cat selected)
            
    if($cPath_top != $path_top and $cPath_top != 0$skip_cat 1;
            break;
          case 
    3://full active tree, others per level
            
    if($cPath_top != $path_top$test_level 1;
            break;
          case 
    4://like 3, active branches only
            
    if($cPath_top == $path_top){
              if (
    $cat_depth >= 2){//only test sub-subcats+
                
    $path_ids explode('_',$path);
                
    $path_parent $path_ids[count($path_ids)-2];
                if (!
    in_array($path_parent,explode('_',$_GET['cPath']))) $skip_cat 1;//show only subcats w parent in $cPath
              
    }
            } else {
    //if not active test for level
              
    $test_level 1;
            }
            break;
          case 
    5:// show active, no top, per levels
            
    if ($cat_depth == or $cPath_top != $path_top) {
              
    $skip_cat 1;
            }else{
              
    $test_level 1;
            }
            break;
        }
    //switch
        
    if ($test_level){
          switch (
    'true'){
            case (
    $cat_box_active_level[1] > $cat_depth):
              
    $skip_cat 1;
              break;
            case (
    $cat_box_active_level[2] < $cat_depth):
              
    $skip_cat 1;
              break;
          }
    //switch
        
    }//if
      
    }//defined
      
    return $skip_cat;

    ***
    I have these defines in my categories_dressing_defines file:
    define('CAT_BOX_ACTIVE_LEVEL', '0|0|1');//shows only top level cats and 1st level sub-cats
    --which is what I want but ONLY on the home page.

    define('CAT_BOX_ACTIVE_LEVEL', '2|0|1');//active only (all tops when no cat selected)
    --on parent and sub-cat pages
    Last edited by autoace; 6 Oct 2010 at 09:38 PM.
    Thank you,
    autoace

  2. #1502
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I'm surprised I haven't seen this anywhere, but can Categories Dressing allow me to highlight the currently selected category or sub-category with a css background-color?

  3. #1503
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    autoace - I'll look at it and get back to you.

    srlaird - This is a standard feature of the Zen Cart categories box, and can also be done in Categories Dressing with slightly different selectors.

    Stock selectors:
    .category-subs-parent, .category-subs-selected

    CD selectors:
    #categories li a.cat-parent-text, #categories li a.cat-selected-text,
    #categories li a.cat-parent, #categories li a.cat-selected, #categories li a.cat-not-selected

  4. #1504
    Join Date
    May 2010
    Posts
    74
    Plugin Contributions
    0

    Default Re: Categories Dressing

    These worked for me in stylesheet_boxes.css.

    Stock selectors:
    .category-subs-parent, .category-subs-selected

    I'm not sure why I can't get the others to work using the CD style sheet.

    Poetry, once you know the magic words...selectors, that is. Thank you so very much!

  5. #1505
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Quote Originally Posted by gjh42 View Post
    Don't set up groups with headers and then sort them; sort them first, and then put the header at the top of the group.

    The header is attached to a particular category, not to a group. Whichever category you want at the top of a group gets the heading.
    Hi, can you please review this question again. I'm still confused:

    Thank you. That has put the cateogry header on the top.

    However I'm still not able to sort the categories. Say for example I'd like to put it in this order:

    Louis Vuitton
    Chanel
    Gucci
    Hermes
    Fendi

    When I number the sort order, Louis Vuitton ends up above the header again.

    Also, if I set the cateogry dressing to 80_100 do I adjust this setting if I add more categories? Confused.

    Thank you for your prompt reply though! The best support on any add on so far!

    Thank you!

  6. #1506
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    Number the sort order for all of your categories. Then, whichever one ends up on top of your group, give that one the heading (like Louis Vuitton here).

  7. #1507
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Categories Dressing

    I'm so sorry...but I really don't understand.

    I have applied sort order numbers to my categories. However, it doesn't work properly. It'll sort correctly until I get to the last 1-2 sub categories. For example I might number it this way:

    Louis Vuitton - 10
    Chanel - 20
    Gucci - 30
    Hermes - 40
    Fendi - 50
    Prada - 60

    The Fendi and Prada (50, 60) sort numbers always end up ABOVE my category header. I'm not sure what's wrong but I've tried to tweak the sort numbers, I've even removed them all together. That works...but I do want to have them sorted.

  8. #1508
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    That sounds like there is something fundamentally wrong with how the sorting code is working in your site (not related to Categories Dressing). What happens if you just eliminate the heading define altogether? Do Fendi and Prada still show above Louis Vuitton?

  9. #1509
    Join Date
    Sep 2010
    Posts
    612
    Plugin Contributions
    0

    Default Re: Categories Dressing

    Sorting code works okay and doesn't have problems otherwise.

    Not sure if I'm using the right heading code for what I'm trying to acheive.

    This is how my products are set up:

    MASTER HEADING
    SUB CATEGORY
    SUB CATEGORY
    SUB CATEOGRY
    PRODUCT

    Right now it works but I just have issues with the sorting. All I want is to use the category dressing to replace the MASTER CODE and hide it. Also to show the first sub category.

    I'll try to remove the code and double check on the sorting issue as well though...

  10. #1510
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Categories Dressing

    The Cat Dressing code doesn't have the ability to alter the sort/display order, only to control whether an item in the list will display or not. If you have sort order problems, they are caused by something else.

 

 

Similar Threads

  1. categories dressing
    By fw541c in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 19 Nov 2010, 09:29 PM
  2. Categories Dressing
    By wotnow in forum Addon Sideboxes
    Replies: 10
    Last Post: 7 Apr 2010, 03:06 AM
  3. Categories Dressing issue
    By Maynards in forum Addon Sideboxes
    Replies: 0
    Last Post: 13 Mar 2010, 10:51 PM
  4. Categories Dressing
    By Maynards in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 12 Mar 2010, 11:05 PM
  5. Categories Dressing
    By PGlad in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 7 Aug 2007, 07:05 PM

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