Problem with Oscommerce shop

Having problems with DHTML Menu? There is usually somebody here who knows the answer.
Post Reply
Frank Bemelman
Beginner
Beginner
Posts: 3
Joined: Tue Feb 12, 2008 10:53 am

Problem with Oscommerce shop

Post by Frank Bemelman »

Hi to all!

Yesterday evening I installed a new menu in my web shop at http://www.videofrank.nl

Two problems...

1) I had a javascript that automatically enlarges a picture, when viewing a product description and moving
the mouse over the picture. This has stopped working. Why is that?

2) I put a number in front of the categorie description. To align the text, I put a table in each menu entry, first cell contains a number and the second cell contains the menu text. I made the table transparent, so that the background color changes as you move over the menu. But before I put that table in, the text would invert from black to white (which is nice) but now stays black all the time. How can I make these tables inheret all the properties as set by $mmstyle parameters?

Thanks for any hints and ideas!

Best wishes, Frank
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Problem with Oscommerce shop

Post by John »

Hi Frank,

I see a few problems, some with the menu, and some with other scripts you are using...

1. From Google Analytics - "Copy the following code block into every webpage you want to track immediately before the </body> tag.". You have that code in the <head>.

2. The </head> tag is missing.

3. The tooltip code you are using states the following - "/* IMPORTANT: Put script after tooltip div or put tooltip div just before </BODY>. */". I don't see either of those instructions being followed.

4. The menu is not set up properly for use in a table cell. See this page for instructions.

5. Typically we like to see the menu calls as the first item after the <body> tag.

If you are not supporting NS4 any more (who is?), you can use the new menu calls...

Code: Select all

<script type="text/javascript" src="/catalog/milonic/milonic_src.js"></script>
<noscript><a href="https://milonic.com/">JavaScript DHTML Menu Powered by Milonic</a></noscript>
<script type="text/javascript" src="/catalog/milonic/mmenudom.js"></script>
Not trying to be a snot here, but some things just don't play nice when not put in their proper place.
John
Frank Bemelman
Beginner
Beginner
Posts: 3
Joined: Tue Feb 12, 2008 10:53 am

Re: Problem with Oscommerce shop

Post by Frank Bemelman »

Hi John,

Thanks for the comments on the google code. I corrected that.
The #div for the tooltip has also been added, makes no difference.

I used the Milonic package with the provided files for Oscommerce that I also found here.
These files load the menu from the shop's database. Installation was easy, I only had to
make a very small change, to load the menu box with "Milonic data". I have no idea how
to follow those table rules on the page you pointed me to.

The only change I made to oscommerce file (categories.php) was commenting out one line and
add a new one, according to the instructions in the downloaded package. And I commented out.
the link to milonic.com (which is okay I think, as I paid for a licence ;-))

//new infoBox($info_box_contents);
//echo "<a style='font-family:verdana;font-size:10px;' href='http://milonic.com/'>DHTML Menu by Milonic JavaScript</a>";
require_once(DIR_FS_CATALOG.'/milonic/oscommerce-menu.php');

If I change it back, my tooltip works just fine.

I really liked my tooltip that enlarges the images on the fly. Might there be any fundamental reason that these
two pieces of software can't work together in one page?

Frank
Frank Bemelman
Beginner
Beginner
Posts: 3
Joined: Tue Feb 12, 2008 10:53 am

Re: Problem with Oscommerce shop

Post by Frank Bemelman »

Ok, things are working again. I downloaded/installed the latest tooltip version and now both Milonic menu and the tooltip work happily together.

As usually, (speaking for myself!!!) it takes more stubborness than actual knowledge ;-)

Time for a beer.

Best wishes, Frank
User avatar
John
 Team
 Team
Posts: 5967
Joined: Sun May 19, 2002 8:23 pm
Location: Phoenix, AZ
Contact:

Re: Problem with Oscommerce shop

Post by John »

Sorry - my fault for not checking that (I usually do).

Glad to hear it's working!
John
Post Reply