Results 1 to 5 of 5

Problems displaying Sub-Categories / Products on same page

This is a discussion on Problems displaying Sub-Categories / Products on same page within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hi, I have been playing with my MS2 MAX 1.5 install and coming along well with my store. Although I ...

      
  1. #1
    New Member pigdestroyer's Avatar
    Join Date
    Jan 2004
    Location
    London
    Posts
    13
    Rep Power
    0


    Default Problems displaying Sub-Categories / Products on same page

    Hi,

    I have been playing with my MS2 MAX 1.5 install and coming along well with my store. Although I now have a problem. I initially wanted to keep all of my categories in the same format whereby they either had sub-categories in them or products. However, I have come to the point where I need to display at least 7 products or so and one single sub-category. The problem is....although my products are displaying as expected, the subcategories do not. I can see that they are there in the categories info box but they do not appear in the main content area.

    Is there a fix for this or am I being a spazz?

    http://www.extrememetal.co.uk/index.php?cPath=0_24_35

    Thanks in advance for any input.

  2. #2
    Anonymous
    Guest


    Default

    Well I managed to fix this fairly easily by altering the code in index.php slightly to reflect set a different $category_depth variable for categories which contain both products and sub-categories at that level. This then displays a template which is effectively is both index_nested.tpl.php and index_product.tpl.php combined into one file.

    Easy in the end really.

  3. #3
    Anonymous
    Guest


    Default

    anyone have a code sample for this? i am running into this problem as well....

  4. #4
    Anonymous
    Guest


    Default

    I actually wrote around this problem myself, since I posted this problem initially, if you visit http://www.extrememetal.co.uk you will see this in operation. Drop me a line through the site and I will gladly forward you my ammeded code.

  5. #5
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    Guest, better yet, how about you just attach the ammended code to your post here, that is, after all, what this forum is for...
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Admin/categories.php lists all 5000 products on same page...
    By JonCloud420 in forum osCMax v2 Features Discussion
    Replies: 3
    Last Post: 02-06-2007, 10:31 AM
  2. No categories, just products, on main page, with dropdowns
    By dave_rave_old in forum osCmax v2 Customization/Mods
    Replies: 4
    Last Post: 03-12-2006, 04:24 AM
  3. Products/Categories on front page
    By webguy262 in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 08-01-2005, 06:45 AM
  4. Products/Categories on front page
    By webguy262 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 05-12-2004, 05:31 PM
  5. Displaying less products on front page
    By angie201 in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 04-01-2003, 03:16 PM

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
  •