osCmax v2.5 User Manual
Results 1 to 3 of 3

Problem installing Cool Menu mod

This is a discussion on Problem installing Cool Menu mod within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; I have made all the modifications except for adding the menu_automation.js in the header. The problem is that I cannot ...

      
  1. #1
    Lurker
    Join Date
    May 2004
    Posts
    2
    Rep Power
    0


    Default Problem installing Cool Menu mod

    I have made all the modifications except for adding the menu_automation.js in the header. The problem is that I cannot find where to add this. Here are the instructions but with MS2-MAX the header is not defined as described in the modification instructions. Can someone point me in the right direction as to how to add the menu_automation.js to the header section in MS2-MAX?


    Modification INSTRUCTIONS for oscommerce default installation:
    Open every PHP file in you Catalog-directory (the root directory of your shop)

    Here is a copy of the top section of the default.php file.

    I've highlighted the sections between the <HEAD> and </HEAD> in ORANGE so you can see where they are.

    I've also highlighted where I have this line of code in GREEN

    <?php
    /*
    $Id: default.php,v 1.79 2002/11/23 02:08:10 thomasamoulton Exp $

    osCommerce, Open Source E-Commerce Solutions
    http://www.oscommerce.com

    Copyright © 2002 osCommerce

    Released under the GNU General Public License
    */

    require('includes/application_top.php');

    // the following cPath references come from application_top.php
    $category_depth = 'top';
    if ($cPath) {
    $categories_products_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS_TO_CATEGORIES . " where categories_id = '" . $current_category_id . "'");
    $cateqories_products = tep_db_fetch_array($categories_products_query);
    if ($cateqories_products['total'] > 0) {
    $category_depth = 'products'; // display products
    } else {
    $category_parent_query = tep_db_query("select count(*) as total from " . TABLE_CATEGORIES . " where parent_id = '" . $current_category_id . "'");
    $category_parent = tep_db_fetch_array($category_parent_query);
    if ($category_parent['total'] > 0) {
    $category_depth = 'nested'; // navigate through the categories
    } else {
    $category_depth = 'products'; // category has no products, but display the 'no products' message
    }
    }
    }

    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_DEFAULT);
    ?>
    <!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html <?php echo HTML_PARAMS; ?>>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=<?php echo CHARSET; ?>">
    <title><?php echo TITLE; ?></title>
    <base href="<?php echo (getenv('HTTPS') == 'on' ? HTTPS_SERVER : HTTP_SERVER) . DIR_WS_CATALOG; ?>">
    <link rel="stylesheet" type="text/css" href="stylesheet.css">
    <script LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT>
    </head><body leftmargin="0" topmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">


    Thanks...

  2. #2
    Lurker
    Join Date
    May 2004
    Posts
    2
    Rep Power
    0


    Default

    Maybe a better question would be : Where is the <head> tag setup or defined in OSCMAX? -OR- What file has the java script defined for each page?

  3. #3
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    Would you be looking for main_page.tpl.php in the template directory?
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

Similar Threads

  1. Adding cool menu and keeping the catorory menu???
    By Kyle_Bassett in forum osCmax v2 Customization/Mods
    Replies: 0
    Last Post: 10-18-2005, 09:17 AM
  2. Cool Menu disappears behind Attrib Drop down box
    By cacooke in forum osCmax v2 Customization/Mods
    Replies: 2
    Last Post: 08-08-2005, 06:53 PM
  3. DHTML cool menu problem
    By leeb in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-13-2005, 05:22 PM
  4. Dhtml Menu Problem
    By kolamon in forum osCMax v1.7 General Mods Discussion
    Replies: 3
    Last Post: 01-10-2005, 02:24 PM
  5. Cool menu install question.
    By Craig in forum osCommerce 2.2 Modification Help
    Replies: 5
    Last Post: 09-18-2004, 07:01 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •