Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Drop down/flyout categories... where do I start?

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions
 
Thread Tools Search this Thread
  #31  
Old 12-10-2003, 06:09 PM
  finestshops's Avatar 
finestshops finestshops is offline
 

eXpert
  
Join Date: Oct 2002
Location: Toronto, Canada
Posts: 335
 

Default

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.

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
__________________
Best regards,

Anton Pachkine
finestshops.com/x-cart
Reply With Quote
  #32  
Old 12-10-2003, 07:50 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

Default

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

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).
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #33  
Old 12-21-2003, 04:03 PM
 
jimeu jimeu is offline
 

Newbie
  
Join Date: Jun 2003
Posts: 8
 

Default 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..
Reply With Quote
  #34  
Old 12-21-2003, 11:29 PM
 
funkydunk funkydunk is offline
 

X-Man
  
Join Date: Oct 2002
Location: Cambridge, UK
Posts: 2,210
 

Default 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.
__________________
ex x-cart guru
Reply With Quote
  #35  
Old 12-31-2003, 02:03 AM
 
TTS Telecom TTS Telecom is offline
 

Member
  
Join Date: Dec 2003
Location: SW, UK
Posts: 17
 

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

Reply With Quote
  #36  
Old 12-31-2003, 02:59 AM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

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
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
  #37  
Old 01-02-2004, 12:56 PM
  leon's Avatar 
leon leon is offline
 

X-Wizard
  
Join Date: Mar 2003
Location: Costa Rica
Posts: 1,213
 

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


Very nice indeed.
__________________
It doesn\'t matter what is done... it is how it is done.
=============================
XCart Version: 3.5.3 -> Dmcigars.com
XCart Version: 4.1.3....
Reply With Quote
  #38  
Old 04-07-2004, 09:22 PM
 
skyking skyking is offline
 

Member
  
Join Date: Mar 2004
Posts: 13
 

Default

Thanks!
Reply With Quote
  #39  
Old 04-22-2004, 01:12 PM
 
Cameron Cameron is offline
 

eXpert
  
Join Date: Jan 2003
Location: Washington State, USA
Posts: 224
 

Default

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
__________________
Current project: 4.4.2
Reply With Quote
  #40  
Old 04-22-2004, 01:17 PM
  B00MER's Avatar 
B00MER B00MER is offline
 

X-Guru
  
Join Date: Sep 2002
Location: Keller, TX (Cart-Lab.com)
Posts: 3,165
 

Default

Two different category drop downs I've done:

www.extremepsi.com 3 tier category fly-out DHTML
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.
__________________
Cart-Lab - 100+ Social Bookmarks for X-Cart.
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 11:48 PM.

   

 
X-Cart forums © 2001-2020