![]() |
Drop down/flyout categories... where do I start?
I want to make a fly out version of my cateogy menu.... Something I am used to doing in Dreamweaver in static web sites, but not in a site like this.
Is there a plug in available, even a commecially available one, that will make this easier? I would like categoires to flyout showing subcategories, etc. Thanks |
Is it just one level of subcategories that you would like?
|
also what version are you running?
|
Actually...here's the code for include/categories.php:
Code:
<? |
I am running the most recent version of X-Cart. We just installed it last week.
I would actually like the menus to show more than one level deep of subcategorie, at least one more. I am looking over this chunk of code you sent me now to see if it makes sense to me. I'm not especially experienced with this kind of thing. Jeff |
Jeff
I am working on a downloadable mod for drop down menus whereby you can just switch this on/off in admin and have all the submenus poluated by the database. I will let you know when it is complete. |
SubCategories
Is that Sub Cat thing work with ver 3.4.6?
|
It will work with 3.4.x and 3.5.x versions when completed....still about a week or so away I am afraid
|
Hi Funky,
I definitely want this mod too. :) I need a horozontal category list where each parent category goes into its own table cell. Will that type of set up work with what you're doing? Thanks, Cameron |
Can it be done like the OS Commerce style?
Can it be done like the OS Commerce style?
Main Cat Sub Cat 1 Sub Cat 2 Main Cat Main Cat Main Cat |
Quote:
Hi Funkydunk, I'm trying to display all categories as a tree. How do you process subcategories in the loop? Here is my "categories.tpl" Code:
{section name=cat_num loop=$categories} loop=$subcategories is not correct. Is it possible to loop only subcategories for this category here with mod to categories.php you posted?[/quote] |
Wonder if Funkydunk finished this cat mod ?
|
I have it running on a couple of 3.4.x sites in different guises, but have given up on putting a full blown mod together due to the fancy categories mod of xcart 3.5.0.
The drop down cats are being used on: kidsgloriouskids.co.uk cable-shop.co.uk The are both live sites so please no dummy orders. |
Quote:
Where can I get this fancy categories mod of xcart 3.5.0? X-cart guys say they do not have it. Any help with categories.tpl ? I need exactly what you've done. Maybe I can buy it from you. Please let me know. anton@27stars.com |
ok cos i am in a good mood today...
include/categories.php Code:
<? skin1/customer/categories.tpl Code:
{* $Id: categories.tpl, modified by funkydunk 2003*} new template customer/dropdown.tpl Code:
{* dropdown.tpl funkydunk 2003 *} lastly put an {include file="customer/dropdown.tpl"} into the h<head> part of customer/home.tpl SHould work nicely for you on version 3.4.x sites |
Quote:
Man, I think you just saved my sanity. This is the first good news for today and it's already noon. :wink: Thank you, :D |
First of all, let me say you are the coolest and the greatest.
Works fine in 3.5.1 From all followers of the master : thank you :lol: Second, for anybody who is trying to implement this mod of the week, you will have to add this code to skin1.css Code:
.menuskin{ Thanks again! |
Re Mod
I put everything into place as described on this thread,but I get a this page error
Line 10266 Char 1 Error Object Expected Code 0 Url http://www.centralsatellite.com/store/customer/home.php What am I doing wrong? Thank's Censat :o |
nice bit of code there! Successfully implemented in 3.5.1. Does this script only read 'Cat1' > 'Cat2' from the database? If so,is there a work around to read further categories e.g. 'Cat 1' > 'Cat 2' > 'Cat 3'?
thanks |
Glad you are in a good mood, thanx, I will give it a try.
|
sorry forgot the css:
Code:
.menuskin{ |
Thanks for sharing this with us all Duncan!!
One question: Do I only have to tweak the .css file to make the menu drop down from horozontially listed categories across the top of my screen? Much appreciated. Cameron |
This is awesome!
Can you tell me how "If ticked, the categories list always shows root categories" affects this mod? I notice the categories menu always shows the root category with this mod regardless of how many levels deep I am but if I uncheck the above (in admin/general settings/general options) the menus no longer fly out. |
absolutely :)
If show root is ticked then the fly out works if not it will show the normal subcategories. |
Hi Funkydunk,
Any easy way to make category cell to change color on mouseover same way as subcategory does? I think most people would like to see this. |
I have implemented a 'highlight' cell colour on mouse over.
Use the following in your 'skin1.css' file: .CategoriesList { FONT-SIZE: 12px; text-decoration:none; } .CategoriesList a:hover{ width:100%; text-decoration:none; background-color: #ffffff;} Hope this helps you out :). |
Quote:
This's way too easy :-) I added a half page javascript to do almost the same. Thanks, will play with this settings. |
css is lurverly.... 8)
|
Hi guys,
For some reason on one of computers this dropdown menu is going up instead of down. same IE 6. Any ideas how to fix it? Our javascript guy is puzzled as well. :?: Thanks, |
In you skin.css lower the value on the line that says "line-height:18px;"
to a lower number like 14 or 15 you may have to try to see what work's best by changing it a couple of times .menuskin{ position:absolute; width:165px; background-color:#EEEEEE; border:1px solid #003366; line-height:18px; (HERE) z-index:100; visibility:hidden; font-size: 11px; left: 150px; |
Quote:
Thanks. But this was something different. If you resize browser window to the size (same as 800x600 resolution) and where is not enouth space for dropdown to the bottom it's going up by script logic. I just changed the logic to go up only half way in this case. Works nicely. Now it's going down if there is enouth space and align itself at the middle if space is limited below. 8) Code:
//same concept with the vertical position I'm starting to like JavaScript. Will fire script guy tomorrow and write it myself :wink: |
Quote:
Poor guy, sure their is something he can do around. On the other hand, you are right, JavaScript is great, you learn more and more everyday, very usefull and doesnt pound on the server (Client Side most of the time). |
one more level
Great Job and thank you for sharing it...
is there a chance to add one more level on the category... we run our store with one main category, a sub category and a sub-sub-category Will love to be able to display the third level when hoovering over the second level.. |
Re: one more level
Quote:
There is, but it will really hammer the page loading times and add significantly to the size of the pages. I had therefore decided to only run it one level down. |
Thanks ;-)
Thank you very much, This really is very good, makes the whole store much more user friendly.
We are still stocking our store. but have a look here http://www.ttsunlock.com/xcart/customer/home.php Still some work to do. :D |
One thing you guys neglected to think about was the html catalog, going all fancy can have a nice impact on customers user experience but not at your marketing expience, especially if you rely on the html catalog for search engine placement.
I've written a not-so-fancy php version similar to this, there is no mouse over flyouts or dhtml involved, its complete html catalog friendly, and will even keep a tab on where the user is by the var $cat so the user can easily see what category they are in while browsing products, etc. It works only on a 2-tier or 3-tier tree. If anyones interested PM me for a demo url, this mod will be on cartlab for sell soon ;) |
Re: Thanks ;-)
Quote:
Very nice indeed. |
Thanks!
|
This is a great mod!
Did anybody who made this work in 3.5.x adapt funkydunk's code in categories.php to their own, or did you just replace the existing categories.php with his? If you adopted his code to the 3.5.x categories.php, please post it. Thanks! Cameron |
Two different category drop downs I've done:
:arrow: www.extremepsi.com 3 tier category fly-out DHTML :arrow: www.kegworks.com 3 tier category php based (on refresh) The kegworks code is in 3.4.x but is portable to 3.5.x with ease. Granted the php based kegworks category list isn't as fancy but it is alot more usuable and will work in the HTML catalog without any adjustments as well as cross browser compatible. :wink: |
All times are GMT -8. The time now is 02:57 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.