osCmax v2.5 User Manual
Results 1 to 5 of 5

Sub-Categories as Section Headers

This is a discussion on Sub-Categories as Section Headers within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Hi all, I'm starting work on a mod for this as I haven't located any hint of anyone doing this, ...

      
  1. #1
    New Member
    Join Date
    May 2009
    Posts
    13
    Rep Power
    0


    Default Sub-Categories as Section Headers

    Hi all, I'm starting work on a mod for this as I haven't located any hint of anyone doing this, but thought I'd throw it out here for suggestions and opinions.
    I want a complete product list to show within a main category only I want the Subcategories to show as section breaks within the list, like so...

    Main Category
    -Sub Category 1 Heading
    --Product 1
    --Product 2
    --...so on...
    -Sub Category 2 Heading
    --Product A
    --Product B
    --...so on...

    Are there any such mods already out there I can glean from?
    Any advice on this?
    Thanks!

  2. #2
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Sub-Categories as Section Headers

    More info needed.

    Are these links? Where do you want to display them?

    I am going to guess and tell you to look at the SiteMap page already within osCMax and see if that is useful! Put www.yoursite.com/sitemap.php to see it.

    Regards,
    pgmarshall
    _______________________________

  3. #3
    New Member
    Join Date
    May 2009
    Posts
    13
    Rep Power
    0


    Default Re: Sub-Categories as Section Headers

    This is for the product listing.
    When a customer selects a main category, I need the full product listing for that category, including the products in the sub-categories.
    The products will be grouped by the sub-categories, but ALL products will show in the listing.
    Hope that makes sense...
    Thanks!

  4. #4
    osCMax Development Team
    pgmarshall's Avatar
    Join Date
    Feb 2009
    Location
    London
    Posts
    2,678
    Rep Power
    49


    Smile Re: Sub-Categories as Section Headers

    In which case you should start by looking at the sitemap.php code as it has the loop for finding all the subcats and products within a category.

    You will need to work out where you want to display this code ... <your template>/content/index_nested.tpl.php is probably the best bet.

    Regards,
    pgmarshall
    _______________________________

  5. #5
    New Member
    Join Date
    May 2009
    Posts
    13
    Rep Power
    0


    Default Re: Sub-Categories as Section Headers

    Getting closer to making this work. I've gotten as far as looping through all the subcategory (and sub-sub category, etc.) IDs. My big issue is with the product listing itself.
    Has anyone tried making the product listing as a function?

Similar Threads

  1. Better Headers
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 08-28-2009, 01:00 PM
  2. Headers
    By lem in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 02-17-2005, 11:07 PM
  3. Need categories to show in center section
    By cupido in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-06-2004, 12:57 PM
  4. Categories/Products customization in the Admin Section
    By ReginaStelling in forum osCommerce 2.2 Modification Help
    Replies: 4
    Last Post: 07-29-2004, 03:31 AM
  5. categories.php Premature end of script headers
    By rd42 in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 01-26-2004, 06:27 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
  •