Jump to content

PHP Menu Issue


RChilton

Recommended Posts

I am editing some existing code.  Trying to add a 3rd layer to the left sidebar product category navigation basically a subsubmenu item.  The code was already written, however something is wrong in the functionality.  Couple of issues.

 

Category items with sub menus function correctly (such as the essentials category).

 

Categories with two sub menus (boutique) functioning but here are the issues.

    1.  Subcategory has to have product in it for sub sub categories to show up.  Where as in the other categories this is not the case.

    2.  Sub Sub Categories automatically expand all the way out when you hit the main category.  It should function that the sub sub categories do not expand until the subcategory is clicked.

 

I've worked it several different ways but can not come up with the correct combination to make it function properly.   Attached the php page with link to the site on top.

 

Thanks for the help...

 

products_nav2.php

Link to comment
Share on other sites

Menus that expand and contract are driven by css and javascript. In the old days people often called this DHTML.

 

If you can isolate the data in the queries, and that data is bringing back the menus as expected, then you should be able to slot in any menu system, and there are an untold number available.

 

Find one that is documented and easy to understand and replace that gobbledygook code with something clean and maintainable.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.