Results 1 to 6 of 6
  1. #1
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    help question I want to make a dynamic drop-down menu for TOP LEVEL categories

    I want to make a dynamic drop-down menu for the header that includes the TOP LEVEL categories, and listed below them, the FIRST SUB LEVEL categories - but no further. The idea is a menu similar to major e-commerce sites. A live example off the top of my head would be newegg.com

    It needs to report the categories in the following way:

    <ul>
    <li>Top Cat 1</li>
    <ul>
    <li>Sub Cat A</li>
    <li>Sub Cat B</li>
    </ul>
    <li>Top Cat 2</li>
    <ul>
    <li>Sub Cat C</li>
    <li>Sub Cat D</li>
    </ul>
    <li>Top Cat 3</li>
    (no sub categories)
    </ul>

    Currently it reports more something like this:

    <ul>
    <li>Top Cat 1</li>
    <li>Top Cat 2</li>
    <li>Top Cat 3</li>
    </ul>

    I know very little PHP and have been slowly moving along customizing the code... but this is a little over my head for doing it by myself I think.

    I believe the code I need to change is in includes/modules/[MY TEMPLATE]/categories_tabs.php

    Can anyone help me do this? I realize the basics of what needs to be done but don't know how to format the code, or all the 'commands' I need to use. Playing with it I was only able to get it to report sub categories and top level together.

    THANKS IN ADVANCE!

  2. #2
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Need help Customizing the PHP Script for the CATEGORIES TABS module

    Third time posting I know - but I can't EDIT MY OWN POSTS!!!!! So I guess I'll have to re-post tell I get it right lol. Accidentally pasted wrong title last time, and the first time I put in wrong thread...

    I want to make a dynamic drop-down menu for the header that includes the TOP LEVEL categories, and listed below them, the FIRST SUB LEVEL categories - but no further. The idea is a menu similar to major e-commerce sites. A live example off the top of my head would be newegg.com

    It needs to report the categories in the following way:

    <ul>
    <li>Top Cat 1</li>
    <ul>
    <li>Sub Cat A</li>
    <li>Sub Cat B</li>
    </ul>
    <li>Top Cat 2</li>
    <ul>
    <li>Sub Cat C</li>
    <li>Sub Cat D</li>
    </ul>
    <li>Top Cat 3</li>
    (no sub categories)
    </ul>

    Currently it reports more something like this:

    <ul>
    <li>Top Cat 1</li>
    <li>Top Cat 2</li>
    <li>Top Cat 3</li>
    </ul>

    I know very little PHP and have been slowly moving along customizing the code... but this is a little over my head for doing it by myself I think.

    I believe the code I need to change is in includes/modules/[MY TEMPLATE]/categories_tabs.php

    Can anyone help me do this? I realize the basics of what needs to be done but don't know how to format the code, or all the 'commands' I need to use. Playing with it I was only able to get it to report sub categories and top level together.

    THANKS IN ADVANCE!

  3. #3
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: Need help Customizing the PHP Script for the CATEGORIES TABS module


  4. #4
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: Need help Customizing the PHP Script for the CATEGORIES TABS module

    Quote Originally Posted by AmandaGero View Post
    No... and its not quite what I'm looking for, but let me see if I can make it work to how I want it too.

    I'll post my results.

    Thanks :)

  5. #5
    Join Date
    Feb 2010
    Posts
    7
    Plugin Contributions
    0

    Default Re: I want to make a dynamic drop-down menu for TOP LEVEL categories

    This will work, THANKS!

  6. #6
    Join Date
    Feb 2009
    Posts
    186
    Plugin Contributions
    1

    Default Re: I want to make a dynamic drop-down menu for TOP LEVEL categories

    no problem, glad to help.

 

 

Similar Threads

  1. Replies: 4
    Last Post: 1 Jul 2015, 06:51 PM
  2. I want sub-categories, and drop-down menu's
    By dinanm3atl in forum Templates, Stylesheets, Page Layout
    Replies: 6
    Last Post: 15 Jul 2008, 04:53 AM
  3. How do I make a flyout menu for just top-level categories?
    By websightdesign in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 14 May 2008, 08:45 PM
  4. Drop down menu for Categories
    By jd57 in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 9 Apr 2008, 03:15 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR