Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1
    Join Date
    Apr 2010
    Posts
    100
    Plugin Contributions
    0

    help question List subcategories in the category page?

    Hello,
    Is there a way that I can list the sub-categories in the category page?

    For example, if I have category "Laptops", then subcategories "IBM" and "Dell". If user clicks the "Laptop" on the left category side box, then at the center of the page, in addition to the current category's information (image and description of "Laptop"), I want IBM and Dell to be listed as well.


    Thanks a lot.
    Cindy

  2. #2
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: List subcategories in the category page?

    I'm not exactly sure what you're asking, but what's your setting in the last option under Admin - Configuration - Product Listing ?

    It sounds like you may have both products and subcategories in 'Laptop', and you can't do that.

  3. #3
    Join Date
    Apr 2010
    Posts
    100
    Plugin Contributions
    0

    Default Re: List subcategories in the category page?

    I think I didn't make it clear. What I mean is, using this example:

    There is a "first level" category, as "Laptop".
    Then there are "second level" sub-categories under "Laptop", as "IBM", "Dell".
    And then there are products under "IBM" and "Dell".

    The problem is:
    By default, in the main home page, in the left category box, if I click "Laptop", the information (name, image) about category "Laptop" will be displayed in the center box.
    But what I want is, when I click the "Laptop" in the left category box, I want the information (name, image) of "IBM" and "Dell" to appear in the center box. I guess this should be a very reasonable logic, because there is no product directly under "Laptop", "Laptop" is simply an empty parent category. So when user clicks it, what user really wants is to see its sub-categories under it.

    Any idea of how to do this?

    Thanks.

  4. #4
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    20,021
    Plugin Contributions
    3

    Default Re: List subcategories in the category page?

    The admin setting I mentioned before displays (or doesn't) the subcategory names (and images, if any) in the center column when the main category is selected.

    If I'm still not getting it, a link or screenshot might help.

  5. #5
    Join Date
    Apr 2010
    Posts
    100
    Plugin Contributions
    0

    Default Re: List subcategories in the category page?

    Here is an example of it:




    The top image is what I have now, when I click the "Laptops" at the category left box.

    The bottom is what I want: note the two sub-categories (IBM, Dell) at the center box.

    Thank you

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: List subcategories in the category page?

    If you switch to the Classic Template do you see the Subcategories?
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Nov 2007
    Location
    Sunny Coast, Australia
    Posts
    3,378
    Plugin Contributions
    9

    Default Re: List subcategories in the category page?

    Admin > Catalog > Categories/Products

    click master category

    click edit button of sub-cat and add image for sub-cat

    repeat for all sub-cats

    adjust image size(s) in Admin > Configuration > Images

    Example here: http://chilloutfashions.com.au/index...index&cPath=13

    ignore the video and scroll down - I did not bother with an image for the sub-sub-cats (Embroidered and Printed)

  8. #8
    Join Date
    Apr 2010
    Posts
    100
    Plugin Contributions
    0

    Default Re: List subcategories in the category page?

    Oh, yeah, it shows up when I swtich to the default template.
    So it is the problem of the template I use ----- well, anyone know which files controls that? I still want to use the template I have though.

  9. #9
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: List subcategories in the category page?

    Go to the Tools ... Developers Tool Kit ... in your Zen Cart Admin ...

    In the bottom input box, do a search on:
    category_row

    Do you see that in line that is commented out?

    The commented out line would probably look like:
    Code:
    // require(DIR_WS_MODULES . zen_get_module_directory('category_row.php'));
    The two forward slash marks // make the code a comment and stop it from running ... see if that is the problem with your template ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  10. #10
    Join Date
    Apr 2010
    Posts
    100
    Plugin Contributions
    0

    Default Re: List subcategories in the category page?

    Thanks! That works!
    (I found out the template I use, somehow removed the necessary code)

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Make a page with a list of all subcategories
    By enochian in forum General Questions
    Replies: 10
    Last Post: 1 May 2013, 12:45 PM
  2. How can I display the Attributes on the Product List or Category Page?
    By webion in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 3 Feb 2010, 07:50 PM
  3. Show list of subcategories in category page
    By vooboo13 in forum Setting Up Categories, Products, Attributes
    Replies: 6
    Last Post: 16 Dec 2009, 06:48 PM
  4. List subcategories on page
    By boardstretcher in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 9 Apr 2009, 02:56 PM
  5. Replies: 2
    Last Post: 30 Jul 2008, 08:35 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