X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Dev Questions (https://forum.x-cart.com/forumdisplay.php?f=20)
-   -   Drop down/flyout categories... where do I start? (https://forum.x-cart.com/showthread.php?t=4502)

finestshops 12-10-2003 06:09 PM

Quote:

Originally Posted by censat
In you skin.css lower the value on the line that says "line-height:18px;"


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
if (bottomedge<menuobj.contentheight)
menuobj.thestyle.top=ie4? document.body.scrollTop+menuobj.contentheight/2+eventY-menuobj.contentheight : ns6? window.pageYOffset+menuobj.contentheight/2+eventY-menuobj.contentheight : eventY-menuobj.contentheight
else
menuobj.thestyle.top=ie4? document.body.scrollTop+event.clientY : ns6? window.pageYOffset+eventY : eventY
menuobj.thestyle.visibility="visible"
return false
}


I'm starting to like JavaScript. Will fire script guy tomorrow and write it myself :wink:

leon 12-10-2003 07:50 PM

Quote:

Originally Posted by 27stars
I'm starting to like JavaScript. Will fire script guy tomorrow and write it myself :wink:


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).

jimeu 12-21-2003 04:03 PM

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..

funkydunk 12-21-2003 11:29 PM

Re: one more level
 
Quote:

Originally Posted by jimeu
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..


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.

TTS Telecom 12-31-2003 02:03 AM

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

B00MER 12-31-2003 02:59 AM

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 ;)

leon 01-02-2004 12:56 PM

Re: Thanks ;-)
 
Quote:

Originally Posted by TTS Telecom
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


Very nice indeed.

skyking 04-07-2004 09:22 PM

Thanks!

Cameron 04-22-2004 01:12 PM

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

B00MER 04-22-2004 01:17 PM

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 05:31 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.