Zen Cart Logo
Forums / General Questions / How to add new menu item with submenu in sidebox with static link..

How to add new menu item with submenu in sidebox with static link..

Views: 1,447

Results 1 to 10 of 10
21 Nov 2013, 9:50 AM
#1
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

How to add new menu item with submenu in sidebox with static link..

Need help!!!

Any one please suggest me how to add new menu item with submenu in the sidebox with static link. New menu item should be below category list.

Eg.

category1
category2
category3
category4
New Menu item

  • sub menu1
  • sub menu2
  • sub menu3

Thanks!!

21 Nov 2013, 3:39 PM
#2
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to add new menu item with submenu in sidebox with static link..

If your desired items will not change often or at all, you can add the HTML for them to /includes/templates/your_template/sideboxes/tpl_categories.php (copy from /template_default/sideboxes/). You would want to put them below the featured/specials/etc. link code; be careful of the exact location so they show correctly.

22 Nov 2013, 2:01 PM
#3
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: How to add new menu item with submenu in sidebox with static link..

Thanks for your response gjh42!

How to display sub menu item for new menu, if and only if new menu item page is opened. Otherwise if other category page or product page is open the sub menu item should be hidden.

Please help!!

Thanks!!

22 Nov 2013, 6:45 PM
#4
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to add new menu item with submenu in sidebox with static link..

You can do that with CSS. I would have to see the menu items on your site to give correct advice, along with a list of pages where you want to see them opened. Be sure you structure the submenu items as a <ul> list so they are amenable to CSS handling.

23 Nov 2013, 1:09 PM
#5
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: How to add new menu item with submenu in sidebox with static link..

Sending you link in PM!!

Thanks!

23 Nov 2013, 2:16 PM
#6
mc12345678 avatar

mc12345678

Totally Zenned

Join Date:
Jul 2012
Posts:
16,908
Plugin Contributions:
2

Re: How to add new menu item with submenu in sidebox with static link..

gjh42:

You can do that with CSS. I would have to see the menu items on your site to give correct advice, along with a list of pages where you want to see them opened. Be sure you structure the submenu items as a <ul> list so they are amenable to CSS handling.

snk060:

Sending you link in PM!!

Thanks!

Please, if possible, post the solution (omitting/altering any business sensitive info as necessary), I started following this link so I might learn something about how to do what is being discussed, especially since ZC 1.6 is supposedly going to be more CSS rich.

23 Nov 2013, 8:11 PM
#7
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to add new menu item with submenu in sidebox with static link..

I don't understand what you are trying to do here. The site you linked to has the entire categories sidebox content replaced with a table with individual category links. Each link is inside its own <ul> and <li>, which makes CSS useless on it... but why do you want to replace the standard categories sidebox coding, which automatically opens the current top category and closes the rest?

25 Nov 2013, 4:43 AM
#8
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: How to add new menu item with submenu in sidebox with static link..

Actually I have to include shop by heath concern in the website which has 4 level of menu. For shop by health concern I don't want to give link to level 1 & level 2 menu. So I want to hard code it. Also I want to hide shop by health concern menu item which is generated dynamically from by top menu and left side-box. I will appreciate if you could help me on this.

25 Nov 2013, 12:38 PM
#9
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: How to add new menu item with submenu in sidebox with static link..

This is something that Categories Dressing from Plugins can handle. Some customized settings in its files will let the rest happen automatically. For help setting that up, go to the CD support thread.

25 Nov 2013, 1:47 PM
#10
snk060 avatar

snk060

New Zenner

Join Date:
Aug 2013
Posts:
56
Plugin Contributions:
0

Re: How to add new menu item with submenu in sidebox with static link..

Thank you so much gjh42. I have integrated same plugin. Will check support thread and revert.

Thanks!!