Results 1 to 5 of 5
  1. #1

    Default weird looking sub catagories

    would anyone know why my sub catagories have |_ in front of them?

    |_ RC Cars - Gas/Nitro
    |_ RC Cars - Electric

    my site is at goof-offs.com/goofcart

  2. #2

    Default Re: weird looking sub catagories

    and is there any way to make the catagories menu collapsable so the sub catagories are hidden? or is there anyway to hid the sub catagories?

  3. #3

    Default Re: weird looking sub catagories

    is there any way to make it so that as the user is clicking though the tree, products dont show up in the catagory tree but they only show up on the page itself?

  4. #4

    Default Re: weird looking sub catagories

    what i want to do is make it so that the categories list behaves just like the list in the header. when you click it, the categories only appear on the page, and not underneath the category links.

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

    Default Re: weird looking sub catagories

    Answering your pm for everyone's benefit...

    Find this in /includes/templates/your_template/sideboxes/tpl_categories.php:
    PHP Code:
         if (zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
            
    // skip if this is for the document box (==3)
          
    } else { 
    and add
    substr_count($box_categories_array[$i]['path'],'_') > 0 or
    to get
    PHP Code:
         if (substr_count($box_categories_array[$i]['path'],'_') > or zen_get_product_types_to_category($box_categories_array[$i]['path']) == or ($box_categories_array[$i]['top'] != 'true' and SHOW_CATEGORIES_SUBCATEGORIES_ALWAYS != 1)) {
            
    // skip if this is for the document box (==3)
          
    } else { 
    This will skip the category being processed if there are any underscores _ in the cPath. Subcategories always have at least one _ in the cPath.

    Note: you can show any level of subcats in addition to top cats by changing the 0 to a 1, 2, etc.
    Last edited by gjh42; 7 Jul 2008 at 05:01 AM.

 

 

Similar Threads

  1. Adding "specification sheet" templates to Catagories & sub catagories description
    By RobertG in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 7 Jan 2010, 11:47 PM
  2. Adding Catagories/Sub Catagories Not Working.!
    By PetleyJ in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 19 Jul 2009, 04:50 PM
  3. Catagories and sub catagories help
    By chalfontgifts in forum General Questions
    Replies: 1
    Last Post: 6 Sep 2008, 10:29 AM
  4. Catagories and sub catagories
    By aquaessential in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 30 May 2006, 04:30 PM
  5. Catagories and Sub catagories
    By shopyoungway in forum General Questions
    Replies: 1
    Last Post: 14 May 2006, 07:33 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