Page 4 of 6 FirstFirst ... 23456 LastLast
Results 31 to 40 of 52
  1. #31
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: always display subcategories in sidebox

    Same question here....... Does anyone know how to get this mod to only open to the first level subcategories not every sub-category?

  2. #32
    Join Date
    Jan 2009
    Posts
    2,123
    Plugin Contributions
    0

    Default Re: always display subcategories in sidebox

    After hours of searching and experimenting, here is the solution:

    Find this in /includes/templates/your_template/sideboxes/tpl_categories.php:

    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
    } else {


    Replace with:

    if (substr_count($box_categories_array[$i]['path'],'_') > 1 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
    } else {

  3. #33
    Join Date
    Jun 2008
    Posts
    54
    Plugin Contributions
    2

    Default Re: always display subcategories in sidebox

    Anyone succeeded in changing the default look of ch_categories?

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

    Default Re: always display subcategories in sidebox

    You can do it by adding the appropriate classes/ids to your stylesheet, or applying Categories Dressing as mentioned in the other thread where you have posted about this.

  5. #35
    Join Date
    Sep 2009
    Posts
    25
    Plugin Contributions
    0

    Default Re: always display subcategories in sidebox

    Quote Originally Posted by seethrou View Post
    There are only two php files of the mod and two docs, one is readme.txt and the other is gnu license.txt.

    The installations should within half minute.
    Including one setup in admin
    => Tools => Layout Boxes Controller => sideboxes/ch_categories.php

    Then enable and config the sort order of => sideboxes/ch_categories.php
    Or
    If you don't like two Categories Sideboxes Co-Existing
    Then Disable / Config the sort order of => sideboxes/categories.php

    Attached is the screen capture of the default display of the un-collapse Ch_Categories Sidebox (only show the upper portion), for your preview and run under v1.3.5.
    Hi, I am using the ch_category mod and it is working fine to expand my subcategories.

    Can I know how can i make the font at my main categories to be bold (or in other colour just like yours) while the subcategories remain unbold? I tried looking at the css styesheet but couldnt get any idea. I am totally new in web designing. Can anyone help?

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

    Default Re: always display subcategories in sidebox

    The exact selectors to style may depend on your template, so giving us a link to see your site live is always the most reliable way to get correct answers about CSS.

    For the stock template, styling
    a.category-top {}
    will take care of top cats, and
    a.category-subs, a.category-products {}
    will cover subcategories.

    If you don't find them in your stylesheet, add them and style away.

  7. #37
    Join Date
    Apr 2009
    Posts
    149
    Plugin Contributions
    0

    Default Re: always display subcategories in sidebox

    Quote Originally Posted by limelites View Post
    After hours of searching and experimenting, here is the solution:

    Find this in /includes/templates/your_template/sideboxes/tpl_categories.php:

    if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
    } else {


    Replace with:

    if (substr_count($box_categories_array[$i]['path'],'_') > 1 or zen_get_product_types_to_category($box_categories_array[$i]['path']) == 3 or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
    // skip if this is for the document box (==3)
    } else {
    I've tried that and it just shows it as default with no subcatagories :/

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

    Default Re: always display subcategories in sidebox

    Just in case you are getting a float vs. integer problem, you can try either of these:

    if ((int)substr_count($box_categories_array[$i]['path'],'_') > 1 or

    if (substr_count($box_categories_array[$i]['path'],'_') >= 2 or

  9. #39
    Join Date
    Feb 2010
    Posts
    4
    Plugin Contributions
    0

    Default Re: always display subcategories in sidebox

    hi,

    can somebody suggest me how to show the categories and subcategories at level one always. and afterwards on click it will show me the next level sub category too.

    thanks in advance. hope to see the response soon.

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

    Default Re: always display subcategories in sidebox

    Install Categories Dressing with the chcategories option, and set the 'CAT_ACTIVE_LEVEL' define as described in the readme.
    Post in the Categories Dressing support thread if you need help.

 

 
Page 4 of 6 FirstFirst ... 23456 LastLast

Similar Threads

  1. v150 How to always display subcategories on the main page.
    By TSN99 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 24 Oct 2015, 01:52 AM
  2. Categories Sidebox: How to always include subcategories?
    By lat9 in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Mar 2010, 02:18 PM
  3. Always display subcategories - AGAIN
    By twiddletails in forum Setting Up Categories, Products, Attributes
    Replies: 7
    Last Post: 30 Sep 2008, 05:00 AM
  4. How to: ALWAYS DISPLAY SubCATEGORIES ???
    By ahakobyan in forum Basic Configuration
    Replies: 5
    Last Post: 1 Apr 2008, 08:05 AM
  5. Subcategories always showing in sidebox
    By quantum in forum All Other Contributions/Addons
    Replies: 2
    Last Post: 22 Sep 2006, 12:04 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