Zen Cart Logo
Forums / All Other Contributions/Addons / CSS Dropdown menu for the header- With Categories!

CSS Dropdown menu for the header- With Categories!

Views: 615,637

Results 1,021 to 1,040 of 2,344
3 Jun 2008, 1:15 PM
#1021
countrycharm avatar

countrycharm

Totally Zenned

Join Date:
Jul 2007
Posts:
2,179
Plugin Contributions:
2

CSS Dropdown menu for the header- With Categories!

Craft Magick
You were on the right tract, but you also need to modify the file /includes/templates/your_template/common/tpl_drop_menu.php

4 Jun 2008, 1:18 PM
#1023
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Ive installed his mod and at the moment my categories has two sub categories.

One sub category goes straight to the product page and the other sub category has 8 sub sub categories which each go to a product page.

How can I edit this mod so my two sub categories are in the header, and the one that has sub sub categories acts as a fly out?

thanks a lot
james

4 Jun 2008, 3:39 PM
#1024
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Forgot to mention the problem im having,

When I comment out the heading of the links i dont want, it removes them ok but the roll over stops working properly. It goes all 'jittery' and the fly out dissapeares when you move you mouse off the button and onto the link in the flyout you are trying to click on.

4 Jun 2008, 4:27 PM
#1025
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

OK, Ignore the last post. I dont know what I was doing wrong but the commenting out is working now.

I’ve commented out all the links in the header except ‘Categories’.

How can I put both my sub categories in the header, rather than ‘categories’ (which contains them).

thanks
james

4 Jun 2008, 6:42 PM
#1026
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Probably quite obvious to the php literate, but the 'categories' link in the code seems to be;

<li class="submenu"><a href="<?php echo zen_href_link(FILENAME_SITE_MAP); ?>"><?php echo HEADER_TITLE_CATEGORIES; ?></a>

So im assuming that if you copied this code but changed the;
php echo HEADER_TITLE_CATEGORIES
to point to whichever sub category you wanted the link to be, that would be the way to do this?

I’ve tried replacing ‘CATEGORIES’ with the name of one of my sub categories but that didn't work.

Am I on the right track?
james

4 Jun 2008, 8:51 PM
#1027
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I was having that exact problem, needing parent categories to be in the header. I believe it is actually determined in the /classes/categories_ul_generator.php as to how it calls for things, but I am not PHP savvy.

Turns out there's another version of this mod that does JUST that.

HERE

NOW my issue is I need two categories to go straight to listing All Products in that category while one category would stay the norm, so if anyone can help with that it'd be appreciated.

4 Jun 2008, 9:18 PM
#1028
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

thanks a lot khopek:smile:

4 Jun 2008, 9:22 PM
#1029
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

No problem! Believe me, I know how hard it was to find out about that version.

4 Jun 2008, 9:58 PM
#1030
jettrue avatar

jettrue

Totally Zenned

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

Re: CSS Dropdown menu for the header- With Categories!

jamesdavid:

I want to add another level to my (non-Dropdown) menu, so if you clicked on ‘products’ the menu below would have links to the product's page’s?

This is the menu I have at the moment;
http://www.jameschetwood.com/menu/menu.jpg

And this is what I’m trying to achieve;
http://www.jameschetwood.com/menu/menuiwant.jpg

I know this isn't a Dropdown menu but ive asked around and a few people thought the best thing would be to modify this add on.

Does anyone know how to do this?
Thanks a lot
James

HOME LOG IN PRODUCTS
SHOES SHIRTS TROUSERS ACCESSORIES
TROUSERS PRODUCT PAGE
The "Paul's Version" right after this mod in the download section lists categories across the top. I don't know how to get it to list all products in the dropdown, but my advice if you want it to show products, give EACH product its OWN subcategory, then when your customers click on that subcategory, it will go straight to the product (zen cart is designed to go straight to the product if there is only one product in a given category).

4 Jun 2008, 9:58 PM
#1031
jettrue avatar

jettrue

Totally Zenned

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

Re: CSS Dropdown menu for the header- With Categories!

khopek:

I was having that exact problem, needing parent categories to be in the header. I believe it is actually determined in the /classes/categories_ul_generator.php as to how it calls for things, but I am not PHP savvy.

Turns out there's another version of this mod that does JUST that.

HERE

NOW my issue is I need two categories to go straight to listing All Products in that category while one category would stay the norm, so if anyone can help with that it'd be appreciated.

see my post right above this one.

4 Jun 2008, 10:07 PM
#1032
jettrue avatar

jettrue

Totally Zenned

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

Re: CSS Dropdown menu for the header- With Categories!

wally:

Hi, I just installed your template ( https://www.allclaveparts.com ) - it really is nice!

While I am working on trying to get everything updated, it seems like I lost my google checkout during the conversion process.

The google shopping cart no longer appears on the checkout page like it did prior to the conversion. It is listed as payment option, but clicking on it just returns you to the shopping cart.

Any idea what I could of done wrong?

Thx

Wally

Did you move all of the necessary google checkout files to the cherry_zen/ folder? For example, google checkout has these extra files:

includes/templates/YOUR_TEMPLATE/templates/tpl_gc_return_display.php
includes/templates/YOUR_TEMPLATE/templates/tpl_gc_return_noproduct.php

Google checkout also makes changes to:
tpl_checkout_payment_default.php
tpl_login_default.php
tpl_shopping_cart_default.php
tpl_time_out_default.php

Make sure those files are also moved to the cherry_zen/templates/ folder, and you'll need to merge the changes in tpl_checkout_payment_default.php since I made changes to that file as well.

4 Jun 2008, 10:14 PM
#1033
khopek avatar

khopek

Totally Zenned

Join Date:
Aug 2006
Location:
portlandish, oregon
Posts:
795
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

The "Paul's Version" right after this mod in the download section lists categories across the top. I don't know how to get it to list all products in the dropdown, but my advice if you want it to show products, give EACH product its OWN subcategory, then when your customers click on that subcategory, it will go straight to the product (zen cart is designed to go straight to the product if there is only one product in a given category).

That is actually exactly what I did for the time being. The only problem is if you happen to click on the Parent Categories in the header, it lists the Sub Categories and for two categories it'd make more since to show a Product Listing instead (with description, etc...).

Perhaps I should just set up two Manufacturers for the two categories and change the links in the header to list it that way...

5 Jun 2008, 8:43 AM
#1034
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Thanks a lot. I think ive confused everyone here by asking about 2 different menus. Pauls menu seems to work great when you want your different categories to be in the menu, rather than just the 'category' link.

The other menu I was asking about needs to extend like a flyout, and then stay in place when you were on the products page. (http://www.jameschetwood.com/menu/menuiwant.jpg)
Ive managed to achieve this with a very dirty hack of the categories box. Id be happy to write some instructions but like I said, this is a very clumsy solution.

6 Jun 2008, 8:26 PM
#1035
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

I have a strange problem however it only happens on certain computers and i am trying to figure out why. Everything works great on certain computers however for some reason on random computers that i get on and check the site the menu will have red "X's" to the left. Which is probably the blank box but why are there red x's. Only on certain computers. I was also wondering how can i set the page to where it looks the same on ALL computers. for example on the site i have the background of the site a picture and the center box is smaller so you can see the background. Well this center box has for example set to something like 840px or something. But on computers with different resolution the gap will be either bigger or smaller. How can i make this appear the same on all computers with different resolutions.

The site is

http://wpc-consulting.com/~stxmill/

7 Jun 2008, 5:06 PM
#1036
jamesdavid avatar

jamesdavid

Zen Follower

Join Date:
Apr 2008
Posts:
193
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

This is my current menu (i cant take a screen grab while hovering so i’ve photoshoped it, but you get the idea);
http://www.jameschetwood.com/css/men1.jpg

This is the menu Im trying to make;
http://www.jameschetwood.com/css/men2.jpg

How can i get the text for each link in the fly out menu to alight to the right of ‘More Gems’?

I made this with
css_horizontal_dynamic_menu_pauls_edition_1-1 but its very similar to this mod.

Ive also posted this here;
http://www.zen-cart.com/forum/showthread.php?t=68676&highlight=css+horizontal+dynamic+menu&page=2

Please let me know if this is a breach of forum etiquette.

9 Jun 2008, 4:28 AM
#1037
edm avatar

edm

New Zenner

Join Date:
Mar 2008
Posts:
52
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Hi Jade,
Love this drop menu, Can you please tell me how to remove the Nav menus (home/login) from the header, as the only ones I want on the top of the page are in your drop menu.

10 Jun 2008, 3:37 AM
#1038
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Help,

I have followed along with the read me file and gone back over it but I must have missed a step. I am using 1.3.8.
Here is my link: http://www.auto-xtras.net/shop/

As you can see my drop down is actually a vertical menu can someone tell me where I went wrong? :huh:
Thanks in advance,
Renee

10 Jun 2008, 8:03 AM
#1039
ces avatar

ces

Zen Follower

Join Date:
Nov 2004
Location:
West Mids, England
Posts:
199
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Looks to me as if you are missing the style sheet for the menu:

stylesheet_header_menu.css

Should probably be here for your template:
includes/templates/classic/css/stylesheet_header_menu.css

Craig

10 Jun 2008, 12:18 PM
#1040
redcinamn avatar

redcinamn

Zen Follower

Join Date:
Oct 2006
Posts:
175
Plugin Contributions:
0

Re: CSS Dropdown menu for the header- With Categories!

Thank you I indeed had it under template default. thank you so much!!!
Works and looks awesome!
~Renee :clap: