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

Mod: Having more than one category menu box.

This is a discussion on Mod: Having more than one category menu box. within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Here is a mod I made which makes up to two additional Categories menu boxes. Categories with the sort order ...

      
  1. #1
    Member Luxoria's Avatar
    Join Date
    Sep 2010
    Location
    VA, USA
    Posts
    58
    Rep Power
    26


    1 out of 1 members found this post helpful.

    Default Mod: Having more than one category menu box.

    Here is a mod I made which makes up to two additional Categories menu boxes.

    Categories with the sort order between 0 and 99 go in the first box, 100 through 199 go in the second box, and 200 through 299 go in the third box. If there are no categories with a sort order of 100+ or 200+ then those extra menu boxes will not be generated.

    Attached is the code and install instructions. (three modded files, four changes)

    For a live demonstration you may visit my store here.

    Please let me know if I missed anything.



    For a similar mod that does not make additional boxes but separates various categories see ridexbuilder's mod found in this thread.
    Attached Images Attached Images
    Attached Files Attached Files

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


    Default Re: Mod: Having more than one category menu box.

    Luxoria,

    I think this actually a nice idea that should potentially be included in the source for v2.6. With a bit of admin control to ask if the users want multiple categories boxes then adding an input box for them on the categories.php page ... the box number simply prefixes the sort order ... ie. Box 2, Sort order 5 = 205, Box 3, Sort order 50 = 350.

    Does the menu still expand like the standard one or is it fixed to show all categories and set to one level?

    Regards,
    pgmarshall
    _______________________________

  3. #3
    Member Luxoria's Avatar
    Join Date
    Sep 2010
    Location
    VA, USA
    Posts
    58
    Rep Power
    26


    Default Re: Mod: Having more than one category menu box.

    Adding those extra options fields in the admin area to modify the sort order to reflect the requested box by the user for the categories would be a nice touch.

    Does the menu still expand like the standard one or is it fixed to show all categories and set to one level?
    Good question. If you are referring to the subcategories popping out they still do. (I don't use this live, however) The code does not modify in anyway the existing html output structure, it just chooses not to show the generated html code when it is time to show the output for a particular category.

    The only concern I can think of at the moment is that "<div class="menudiv">" is generated twice/thrice and may potentially interfere with javascript functions. So far this is seems not to be the case.

    Hope that helps.
    Last edited by Luxoria; 04-13-2011 at 12:29 AM. Reason: spelling

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


    Default Re: Mod: Having more than one category menu box.

    I have added this to the Feature Request list for v2.6 so that it get discussed properly - 0000825: Feature Request: Allow use of multiple category boxes controlled through admin - osCmax Bug Tracking System.

    Thanks for sharing with the community.

    Regards,
    pgmarshall
    _______________________________

Similar Threads

  1. CATEGORY CSS MENU for osCommerce v2.3.1
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 01-31-2011, 02:10 PM
  2. Hide No product Category In Category Menu
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 07-31-2009, 12:03 AM
  3. Hide Parent Category and Display only Child or Sub Category in a DHTML menu
    By michael_s in forum New osCommerce Contributions
    Replies: 1
    Last Post: 01-15-2009, 06:45 AM
  4. Specials & Products_new sort category & sub-category dropdown menu
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 06-25-2008, 10:30 AM
  5. Specials & Products_new sort category & sub-category dropdown menu
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 03-02-2008, 09:23 PM

Tags for this Thread

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
  •