Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Ok, so I have an idea...

 

In coolmenu.php there are these lines of code:

 

	$categories = tep_get_categories('');



$height.= 2.65*count($categories);

 

I believe these two lines of code set the height of the box. Additionally I believe that the code is counting main categories, and sub-categories, thus making the box too tall.

 

Does this sound like a probable cause? I'm not a complete programming novice, but I don't know PHP syntax so a little help on some code to fix this problem would be helpful.

 

Thanks!

Posted

Boy, I like talking to myself...

 

I've instituted a temporary fix. I manually set the height of the box. However, I would really like to find a solution to the problem so I don't have to manually change the box size every time I add a category.

Posted

Can you share what you discovered through your ramblings? Others may need the same information.

 

I think the box is still too tall, but the subcategories show up without the fade in.

[no external urls in signatures please, kthanks]

Posted

To change the height I adjusted the multiplier in this snippet of code:

$height.= 2.65*count($categories);

from 2.65 to something smaller.

 

In my browser it fits just about perfect now. Can I ask what browser you're looking at it in?

 

 

To kill the fade I commented out these two lines of code:

 

oCMenu.level[0].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.8)"

and

oCMenu.level[' . $i . '].filter="progid:DXImageTransform.Microsoft.Fade(duration=0.6)"

 

Both are in coolmenu.php

Posted

I use IE most of the time.

[no external urls in signatures please, kthanks]

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...