Results 1 to 5 of 5
  1. #1
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Category and Subcategory functionality

    I want to know if it is possible to disable a super category if it has subcategories.

    What I mean is this:
    If a high category "Cat 1" has products then this is fine.
    If the second high category "Cat 2" has subcatgegories then I want to ensure that "Cat 2" is not selectable via the categories.

    I have the CSS flyout menus installed.

    The problem is that category page when you can see others see: http://jeffdavidcasting.com/catalog/...=index&cPath=3

    I want to be able to customize these pages if I can to either not be there, or to have much more information.

    Is this enough information
    Thank you in advance.

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

    Default Re: Category and Subcategory functionality

    If I understand your post correctly, I think you're asking how to make the menu only grow 2 levels deep, and ignore lower levels?

    To do that, edit /includes/classes/categories_ul_generator.php
    around line 24 you see:
    Code:
     class zen_categories_ul_generator {
       var $root_category_id = 0,
           $max_level = 5,
    Change $max_level value to 2 instead of 5.
    .

    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
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Category and Subcategory functionality

    No, no I am sorry.

    Using that example use the navigation as follows:

    I do not want "Wedding Bands" to be functional but its subcategories to be "Fixed center" and "removable Center" to be.

    Does this make sense?

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

    Default Re: Category and Subcategory functionality

    You'd have to alter the same file mentioned earlier, but hunt through the code and tell it not to render a usable URL in the HREF for categories which have child records. Will require some PHP skills and a good understanding of parent-child logic as implemented in Zen Cart categories.
    .

    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.

  5. #5
    Join Date
    Jan 2007
    Posts
    88
    Plugin Contributions
    0

    Default Re: Category and Subcategory functionality

    Thank you. I wanted to know and if I pursue this I will let you know.

 

 

Similar Threads

  1. Replies: 3
    Last Post: 1 Sep 2013, 05:47 AM
  2. Category and Subcategory in Flyout
    By websightdesign in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 26 Aug 2009, 10:38 AM
  3. Category and Subcategory List
    By ideasgirl in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 25 Aug 2006, 09:37 PM
  4. Category and Subcategory
    By hsoares in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 23 May 2006, 11:07 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