If this is your first visit, check our documentation. To post, register or login.
Forums / Community Contributed Add-Ons / All Other Contributions/Addons / CSS Dropdown menu for the header- With Categories!

CSS Dropdown menu for the header- With Categories!

Started by jettrue on 17 Feb 2007, 6:44 AM · Views: 618,977

Results 1 to 20 of 2,344
17 Feb 2007, 6:44 AM
#1
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #1 by jettrue

This add-on will allow you to have a horizontal css based flyout menu for your zen cart header. It also display your categories dynamically, along with other useful links for your customers. information. This mod was built upon a previous version built for earlier versions of zen cart.

You can see this mod in action at http://www.applezen.sagefish.com/

It is also integrated into the Apple Zen template found here:
http://www.zen-cart.com/index.php?main_page=product_contrib_info&cPath=40_53&products_id=449

Submitted to the download section.

19 Feb 2007, 1:14 AM
#3
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Post #3 by rabbcon

Thanks for this contribution.

Does this contribution allow your vertical categories to flyout as well or should we download the other contribution (CSS Flyout Menu) if we want this design?

Again, thank you.

Contribution Start:
SHINE Live Help Sidebox

19 Feb 2007, 2:34 AM
#4
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #4 by jettrue

Rabbcon:

Thanks for this contribution.

Does this contribution allow your vertical categories to flyout as well or should we download the other contribution (CSS Flyout Menu) if we want this design?

Again, thank you.

No, it doesn't not have vertical categories.... but technically you could use this mod, and it would only require a new stylesheet. I just didn't design it vertically. There were some issues in older versions of css flyout menu's so you may want to download both and use the main files from my mod, but use the stylesheet from the vertical (some changes may be needed in the css though). Clear as mud?

19 Feb 2007, 5:20 PM
#5
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Post #5 by dogtags

Can this menu be used on static HTML pages, as well?

I'd like to show some items on static pages but also use this great menu.

Is it possible?

I'd like to pull the menu from the cart installation location by using some php include tags maybe?

Thanks :smile:

19 Feb 2007, 6:30 PM
#6
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Post #6 by disciple

I have installed the css dropdown menu and it works great. Thanks!

I would like to put my manufacturers in a dropdown as well. As I looked at how things were being done it appears as though in order to get the catergories menu items many queries and such had to be done via the ul category generator. Would the same type of thing need to be done in order to get the manufactures listed in a dropdown menu?

The reason I ask is that I am not a programmer and I don't think I could it if that is what was required.

Thanks in advance for your response.

Rick

20 Feb 2007, 6:07 AM
#7
jean avatar

jean

New Zenner

Join Date:
Jan 2004
Posts:
17
Plugin Contributions:
1

Post #7 by jean

Do you know how we could be rid of the first menu

* Home
* Log In

In the top-top of the page as it make double use with your menu?

TIA

20 Feb 2007, 12:55 PM
#8
disciple avatar

disciple

Totally Zenned

Join Date:
Aug 2004
Posts:
278
Plugin Contributions:
0

Post #8 by disciple

Remove the lines that refer to it in your tpl_header.php file and then just use the call method in the instructions to call the tpl_drop_menu.

Make sure you create an override for the tpl_header.php file in your custom directory.

Here is how I have placed it in my tpl_header.php file:

<div id="headerWrapper">
  <!--bof-navigation display-->
  <div id="navMainWrapper">
        <!--bof-drop down menu display-->
    <?php require($template->get_template_dir('tpl_drop_menu.php',DIR_WS_TEMPLATE, $current_page_base,'common'). '/tpl_drop_menu.php');?>
  <!--eof-drop down menu display-->
  <!--eof-navigation display-->

Rick

20 Feb 2007, 2:09 PM
#9
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Post #9 by dogtags

Is there a way to add a Down Arrow to top-level menu items that contain sub items? (but not to top items that do not contain sub items)

20 Feb 2007, 2:45 PM
#10
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #10 by jettrue

DogTags:

Can this menu be used on static HTML pages, as well?

I'd like to show some items on static pages but also use this great menu.

Is it possible?

I'd like to pull the menu from the cart installation location by using some php include tags maybe?

Thanks :smile:
I really would have no idea on how to go about that. My only suggestion would be to hard code for the static pages.

20 Feb 2007, 2:50 PM
#11
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #11 by jettrue

disciple:

I have installed the css dropdown menu and it works great. Thanks!

I would like to put my manufacturers in a dropdown as well. As I looked at how things were being done it appears as though in order to get the catergories menu items many queries and such had to be done via the ul category generator. Would the same type of thing need to be done in order to get the manufactures listed in a dropdown menu?

The reason I ask is that I am not a programmer and I don't think I could it if that is what was required.

Thanks in advance for your response.

Rick

Do you think your manufacturers would change much? I'm sure what you're asking can be done, as the manufacturer's sidebox is already programmed to output as an ordered list, so perhaps duplicating and renaming that module, and inserting it into the dropdown header could be done, but that would take a good bit of work, I think. If your manufacturers is relatively stable, the easiest way would be to hardcode it into the menu.

20 Feb 2007, 2:57 PM
#12
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #12 by jettrue

DogTags:

Is there a way to add a Down Arrow to top-level menu items that contain sub items? (but not to top items that do not contain sub items)

See if this works:

add this to your stylesheet_header_menu.css:

div#dropMenu li.submenu {background: url(../images/dropmenu.gif) 95% 50% no-repeat;}

The image is attached. It goes in your includes/templates/YOUR_TEMPLATE/images folder.

20 Feb 2007, 3:25 PM
#13
dogtags avatar

dogtags

Totally Zenned

Join Date:
Nov 2003
Posts:
876
Plugin Contributions:
1

Post #13 by dogtags

jettrue:

See if this works:

add this to your stylesheet_header_menu.css:

div#dropMenu li.submenu {background: url(../images/dropmenu.gif) 95% 50% no-repeat;}

The image is attached. It goes in your includes/templates/YOUR_TEMPLATE/images folder.

  1. It was added to all top-level items (even those without sub items)

  2. It was also added to sub items that had further sub items

20 Feb 2007, 3:48 PM
#14
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Post #14 by rabbcon

We got the old menus working for the Categories. Has anyone used CSS Flyout with sideboxes? Does this work?

Contribution Start:
SHINE Live Help Sidebox

20 Feb 2007, 7:12 PM
#15
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #15 by jettrue

DogTags:

  1. It was added to all top-level items (even those without sub items)

  2. It was also added to sub items that had further sub items

  1. Open up includes/templates/YOUR_TEMPLATE/common/tpl_drop_menu.php and remove the "class="submenu" from top-level items without sub items. So the contact us link would change to this:
<li><a href="<?php echo zen_href_link(FILENAME_CONTACT_US, '', 'NONSSL'); ?>"><?php echo HEADER_TITLE_CONTACT_US; ?></a></li>
  1. Add this to the header_menu css file:
    div#dropMenu li.submenu li.submenu {background: none;}

OR, you could use the image attached to have arrows pointing right to designate further subcategories, with this css:

div#dropMenu li.submenu li.submenu {background: url(../images/submenu.gif) 95% 50% no-repeat;}

20 Feb 2007, 7:15 PM
#16
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #16 by jettrue

Rabbcon:

We got the old menus working for the Categories. Has anyone used CSS Flyout with sideboxes? Does this work?

The old contribution can work, its just really buggy. I had issue with categories that didn't have subcategories being first in the drop menu, etc.... certain category scenarios causes problems with the old mod. I have used the older sidebox one without issue on a site or two, I believe.

20 Feb 2007, 9:18 PM
#17
rabbcon avatar

rabbcon

Zen Follower

Join Date:
Dec 2006
Location:
Chicago, IL
Posts:
143
Plugin Contributions:
0

Post #17 by rabbcon

jettrue:

...I have used the older sidebox one without issue on a site or two, I believe.

What do you mean by the "older sidebox one"? Do you mean that you have used the older contribution on a sidebox or there is a contribution for CSS Flyout Sideboxes that you have used? I did not see a contribution for CSS Flyout sideboxes in the download section. I may have overlooked it.

Contribution Start:
SHINE Live Help Sidebox

20 Feb 2007, 9:22 PM
#18
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #18 by jettrue

Rabbcon:

What do you mean by the "older sidebox one"? Do you mean that you have used the older contribution on a sidebox or there is a contribution for CSS Flyout Sideboxes that you have used? I did not see a contribution for CSS Flyout sideboxes in the download section. I may have overlooked it.

It's in the downloads, under sideboxes.

Direct Link:

CSS Flyout Menu

20 Feb 2007, 10:01 PM
#19
cmessa avatar

cmessa

New Zenner

Join Date:
Mar 2006
Posts:
29
Plugin Contributions:
0

Post #19 by cmessa

I just installed your menu's and they work great. I also installed the lightbox image add on and it works great also, but the problem is that you menu is over the lightbox image. Does anyone know how to get the menu to be in the background behind the lightbox?

click on the image to see the lightbox image and the problem. This is not the final pic, but you should be able to see the problem.
http://sacedout.com/index.php?main_page=product_info&cPath=5&products_id=22

thanks for any help.

CMessa

20 Feb 2007, 10:23 PM
#20
jettrue avatar

jettrue

Totally Zenned

Join Date:
Jan 2005
Location:
USA, St. Louis
Posts:
3,651
Plugin Contributions:
5

Post #20 by jettrue

cmessa:

I just installed your menu's and they work great. I also installed the lightbox image add on and it works great also, but the problem is that you menu is over the lightbox image. Does anyone know how to get the menu to be in the background behind the lightbox?

click on the image to see the lightbox image and the problem. This is not the final pic, but you should be able to see the problem.
http://sacedout.com/index.php?main_page=product_info&cPath=5&products_id=22

thanks for any help.

CMessa
Hi!

Open up your stylesheet_lightbox.css and add a zero to the end of all of the z-index's.

So if it says

"z-index:10", change it to "z-index:100"

If it says "z-index:90", change to "z-index:900", etc.