Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

coolMenu


Keyser Soze

Recommended Posts

To fix the coolmenu category infobox from hiding part the infobox below it, edit the coolmenu.php file at:

 

catalog/includes/boxes/coolmenu.php

 

Find:

$info_box_contents[] = array('text' => '

<img src="images/trans.gif" width="150" height="' . $height . '">');

 

Edit the height of the infobox by adding one more (") quotation mark and the number of pixels appropriate for your site.

Should look similar to this:

 

$info_box_contents[] = array('text' => '

<img src="images/trans.gif" width="150" height="86"' . $height . '">');

 

Play around with the height until you get what's right for your site. If you add new categories you will have to adjust the hiegt in this file again.

 

Hope that helps.

Dpac

 

 

 

^

Hello, I've followed the instructions and installed the cool menu on my OS Commerce site. It is quite nice, product categories are correctly scanned and displayed dynamically.

 

Only big issue: The cool menu is hiding part of the banner and part of next Box which is the search Box.

 

Does anyone knows where the problem could come from.

 

Thanks a lot for your help,

 

Greetings

 

Alex

Link to comment
Share on other sites

  • Replies 1.2k
  • Created
  • Last Reply

Top Posters In This Topic

I have looked and looked but no one seems to be able to fix the size issue between "categories" and "cool menu"...

 

The problem is that "categories" expands depending on the number of subcategories in the parent category - and cool menu doesn't

 

so.....

 

Has anyone tried this as a fix?

 

1. Make the Category menu a constant and set height.

2. Then anyone using this can just alter the dimensions of cool menu to make it always fit?

 

I am a newb but it sounds to me like this would work.

 

I don't know where to start with this but if anyone can tell me the code to change to try, I will try it and post to the forum.

 

-Brian

Link to comment
Share on other sites

I have installed the cool menu. but I keep getting this error

 

'makeCM' is undefined

 

which I believe is in the coolmenu.php file. in this line

" oCMenu=new makeCM("oCMenu") //Making the menu object. Argument: menuname "

 

was there something I missed?..

 

the error and site I have it installed on is here

 

http://www.baneki.com/store/

 

can you help me?

Link to comment
Share on other sites

I love the menu but was not paying attention and did not research before installed. It will not work with STS and I don't know enough php to get it to work. :angry: :blush: Has anyone got it to work with STS yet? I would love to keep this menu but want to keep STS also if someone could help would be greatful. Thanks

 

I'm trying to do that. But I'm not an osCommerce nor php expert.

If I manage do to it, I'll post it here.

Link to comment
Share on other sites

  • 4 weeks later...

Hi,

 

I have just installed coolMenu1.2 and everything was great! BUT I have added a width to my pages of 800px from 100% to create a blue border down each side, now this new menu does not fit in with my existing template!

 

http://mt-custom-graphics.com/shop/catalog/

 

Any help on resolving this would be great!

 

Also I will be looking to remove the 'curve' images on the Categories (left) & Basket (right) so if you have any idea how to do this as well!!!

 

 

Thanks in advance,

 

Richard

Link to comment
Share on other sites

If you are looking for a fixed position, like the standaard osCommerce menu, and a vertical fly-out menu, I've just contributed CSS Menu v0.1 which wil show you the same sort of menu, which is fully customizable using CSS-properties! There is also a screenshot included in the package.

 

Should I try this?!!

 

Thanks

Link to comment
Share on other sites

  • 4 weeks later...

COOL Contribution!! :)

 

I installed it 2 days ago, I had problems at the beginning, but I found my answers in this theme.

 

I want to ask you how to bold the marked category in CoolMenu, like this :

 

category1

category2

category3

category4

 

if i look at category3's products?

 

How I can make my Information Box like CoolMenu?

Link to comment
Share on other sites

Hi all...

 

(quick intro): I'm new here and just finding my way through PHP after spending the past 10 years using Perl

 

I'm trying to setup a local site using this coolmenu as I think it's brill... I have got it all working (with more mods of my own) but when I switch javascript off I get nothing... has anyone else had this or have I removed too much code... I know its hard to explain aand there is no way of me putting it online to show you all but I do remember when I installed coolmenu I had an empty catagories box behind the cool menu... and I think to cure that I removed the call to it in the index, anyone has this problem?

 

many thanks in advance

Link to comment
Share on other sites

Hi Guys,

 

Ive searched for several hours but I cant seem to find what I need, Im looking for something very very simple. Most of the drop-down menu's ive seen till now are Categories, Products, etc... what I need is a drop down menu for one of my navigation buttons in oscommerce (I know how that can be done in HTML, but I cant figure it out in PHP) - so a menu similar to the one on top of this page , thus if you put your mouse over 'Community' you would get a list of other links under it.

 

Any help, or redirection to a contribution would be extremely great & I would be grateful

 

Thanks

 

AJ

Link to comment
Share on other sites

I have managed to cure all my coolmenu problems despite the lack of help... and, I have even managed to combine the cool menu with the image rotator using mouse over commands, I am so impressed with this coolmenu... the only 1 downside to it is it's position control as its cord start from 0,0... If I wanted to centre the shop (which I tried) I run into problems, however... as it is not my shop it can stay full screen.

 

 

Many thanks to the creators and all who helped produce this mod.

Link to comment
Share on other sites

Hi osCommerce-Community.

What do you think about the coolMenu on http://www.geraeteland.de ?

Does it work with all browsers?

I need to know this because i want to release a contribution for this menu on oscommerce.com soon but i need to that its bugfree...

Greetings

&y

works great on Mac OS X with latest Firefox and Safari

Link to comment
Share on other sites

  • 1 month later...

I have installed the CoolMenu 1.2.1 onto my site along with the fixed width, centered contributions but i am having a little problem.

I do not know PHP so hopefully this is a really simple problem. I think its the CoolMenu which is the problem as i removed the code for the fixed width and it was the same.

The instructions say to insert;

 

<!-- coolMenu //-->

<?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>

<!-- coolMenu_eof //-->

 

after the BODY tag and before the includes header.php line which I did apart from 2 or 3 pages where there was no BODY tag...

If you need more information i will happily provide.

I hope you can help!

 

Will.

 

 

example.GIF

Link to comment
Share on other sites

  • 2 weeks later...

may seem a daft question but how would one go about linking to an external page, as it all comes from the database I can't see how I would add a custom page to the menu... I can work out how to do it if i append to the end of the create box but not to be in the middle of the menu?

 

 

shop link1>

shop link2>

shop link3>

ext link1> (other.php)

shop link4>

shop link5>

Link to comment
Share on other sites

  • 1 month later...

Displaying categories_name with apostrophes in CoolMenus

 

Since an apostrophe is a meaning character in Javascript they must be replaced with the html entity equivalent of '

 

At line 198 of CoolMenu.php change the lines:

	// remove blanks
	$categories[$i]['text'] = substr($categories[$i]['text'], 12*$blank_length);

to:

	// substitute apostrophes with the ' entity
	$category_text = str_replace("'", "'", $categories[$i]['text']);
	// remove blanks
	$categories[$i]['text'] = substr($category_text, 12*$blank_length);

 

I will also add this in a text to the CoolMenus contribution files.

 

J.R. Heisey

http://www.druesfinejewelry.com

J.R. Heisey

Link to comment
Share on other sites

 

 

Hi! i've followed the steps and install this contribution, but i couldn't see my catagories listing out, but a page error :

Line: 159

Char: 40

Error: Expected ')'

Code: 0

 

and the URL is to my index?

 

 

I wonder if anyone know what's wrong?

Thanks.

Link to comment
Share on other sites

You need to do a little extra checking. However I'm pretty sure that one or more of you category names contains letters that need special attention. See my previous post on apostrophes.

 

- Use IE and try to view you osCommerce site.

- Note down the line number and Char number of the error.

- Close the error window that you described.

- In IE select the menu item View / Source. Notepad will open and you will see the resulting html that the osCommerce PHP code generates.

- Select View / Status bar to see the line number where the cursor is located at the bottom of Notepad.

- Scroll down until you are on the line number causing the error.

- You should see the line starte with oCMenu.makeMenu(

- The third single quoted parameter after oCMenu.makeMenu( is your category name with the offending character.

- The Char number you jotted down is the position from the left on that line where the offending character is located.

- If you have an apostrophe in you category name see my previous post for the solution.

- Other characters may cause such an error in Javascript. If you cannot identify the character post offending line to this forum.

 

JR

 

Hi! i've followed the steps and install this contribution, but i couldn't see my catagories listing out, but a page error :

Line: 159

Char: 40

Error: Expected ')'

Code: 0

 

and the URL is to my index?

I wonder if anyone know what's wrong?

Thanks.

J.R. Heisey

Link to comment
Share on other sites

You need to do a little extra checking. However I'm pretty sure that one or more of you category names contains letters that need special attention. See my previous post on apostrophes.

 

- Use IE and try to view you osCommerce site.

- Note down the line number and Char number of the error.

- Close the error window that you described.

- In IE select the menu item View / Source. Notepad will open and you will see the resulting html that the osCommerce PHP code generates.

- Select View / Status bar to see the line number where the cursor is located at the bottom of Notepad.

- Scroll down until you are on the line number causing the error.

- You should see the line starte with oCMenu.makeMenu(

- The third single quoted parameter after oCMenu.makeMenu( is your category name with the offending character.

- The Char number you jotted down is the position from the left on that line where the offending character is located.

- If you have an apostrophe in you category name see my previous post for the solution.

- Other characters may cause such an error in Javascript. If you cannot identify the character post offending line to this forum.

 

JR

 

 

 

 

THANK YOU SO MUCH!!! :thumbsup:

Link to comment
Share on other sites

  • 1 month later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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