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
Printable View
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
Wally
You need to make this request in the right place. The cherry zen template thread. http://www.zen-cart.com/forum/showth...72703&page=150
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
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.
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
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
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.
thanks a lot khopek:smile:
No problem! Believe me, I know how hard it was to find out about that version.
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).