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

Cool menu install question.

This is a discussion on Cool menu install question. within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hey guys, I was thinking about installing the coolmenu contribution for oscommerce. The install instructions say you have to modyify ...

      
  1. #1
    New Member
    Join Date
    Sep 2004
    Posts
    12
    Rep Power
    0


    Default Cool menu install question.

    Hey guys,

    I was thinking about installing the coolmenu contribution for oscommerce. The install instructions say you have to modyify the left_column.php among other files but it says you have to find the line include(DIR_WS_BOXES . 'categories.php'); and replace it to include(DIR_WS_BOXES . 'coolmenu.php'); Now it could just be me but I can't find that line in the left_column.php file. Can someone point me in the right direction so I can go about installing this mod?

    Thanks,
    ~Craig

  2. #2
    Lurker osCommerce_Templates's Avatar
    Join Date
    Sep 2004
    Posts
    2
    Rep Power
    0


    Default

    You can just put the code you need on the left_column.php file and then when you see the duplicate menu, you can better locate the file that needs to be commented out.

  3. #3
    Lurker osCommerce_Templates's Avatar
    Join Date
    Sep 2004
    Posts
    2
    Rep Power
    0


    Default

    If you have time, post your code for your left_column.php file contents here, and I can fix it for you.

  4. #4
    New Member
    Join Date
    Sep 2004
    Posts
    12
    Rep Power
    0


    Default

    Ok I went ahead and tried installing the coolmenu to my site. I couldn't find the line include(DIR_WS_BOXES . 'categories.php'); in my left_column.php file. But I added the line
    include(DIR_WS_BOXES . 'coolmenu.php'); to it anyways. Here is my left_column.php file because I don't know if it is correct.

    <?php
    /*
    $Id: column_left.php,v 1.2 2003/09/24 15:34:33 wilt Exp $

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

    Copyright (c) 2002 osCommerce

    Released under the GNU General Public License
    */

    $column_query = tep_db_query('select display_in_column as cfgcol, infobox_file_name as cfgtitle, infobox_display as cfgvalue, infobox_define as cfgkey, box_heading, box_template, box_heading_font_color from ' . TABLE_INFOBOX_CONFIGURATION . ' where template_id = ' . TEMPLATE_ID . ' and infobox_display = "yes" and display_in_column = "left" order by location');
    while ($column = tep_db_fetch_array($column_query)) {

    if ( file_exists(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/' . $column['cfgtitle'])) {
    define($column['cfgkey'],$column['box_heading']);
    $infobox_define = $column['box_heading'];
    $infobox_template = $column['box_template'];
    $font_color = $column['box_heading_font_color'];
    $infobox_class = $column['box_template'];
    require(DIR_WS_TEMPLATES . TEMPLATE_NAME . '/boxes/' . $column['cfgtitle']);
    include(DIR_WS_BOXES . 'coolmenu.php');
    }
    }
    ?>

    The installation instructions all said to add the following lines to all your files in the root I belive of your catalog.

    <!-- coolMenu //-->
    <?php require(DIR_WS_INCLUDES . 'coolmenu.php'); ?>
    <!-- coolMenu_eof //-->

    Right after <body>. The problem was, I couldn't find the <body> command in the following files so I didn't edit them.

    info_shopping.php
    checkout_process.php
    fantversion.php
    download.php
    popup_image.php
    redirect.php

    I also didn't get to add the line <SCRIPT LANGUAGE="JavaScript1.2" SRC="includes/menu_animation.js"></SCRIPT> to those files.

    I added the code needed in the stylesheet also.

    When I started checked out my site after I finished everything, it seemed like it was kind of working except that my whole left colomn had disappeard and it gave me some kind of error which said:

    1146 - Table 'wholesa_osc1.TABLE_INFOBOX_CONFIGURATION' doesn't exist

    select display_in_column as cfgcol, infobox_file_name as cfgtitle, infobox_display as cfgvalue, infobox_define as cfgkey, box_heading, box_template, box_heading_font_color from TABLE_INFOBOX_CONFIGURATION where template_id = TEMPLATE_ID and infobox_display = "yes" and display_in_column = "left" order by location

    [TEP STOP]

    I'd like to get my left column back if you guys can help me figure out what I need to add or take out.

    Thanks ALot,
    ~Craig

  5. #5
    New Member
    Join Date
    Sep 2004
    Posts
    12
    Rep Power
    0


    Default

    Ok,

    I got this bad boy mostly working, the only problem I have now is that my category box is on the right side and my coolmenu is in the upper left corner. Im going to search around to find out how to position the menu. But if anyone knows how to fix this, feel free to post it for me.

    Thanks Alot,
    ~Craig

  6. #6
    New Member
    Join Date
    Sep 2004
    Posts
    12
    Rep Power
    0


    Default

    ok I fixed the position problem but my friend says that when you look at the webpage in different resolutions the menu is in different places. You guys know how to get it to adjust depending on the resolution?

    ~Craig

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. Menu question
    By bibleman in forum osCmax v1.7 Discussion
    Replies: 0
    Last Post: 06-24-2005, 02:30 PM
  4. DHTML cool menu problem
    By leeb in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-13-2005, 05:22 PM
  5. Problem installing Cool Menu mod
    By ozone in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 07-08-2004, 10:15 AM

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
  •