Results 1 to 10 of 10

Turning off infoboxes

This is a discussion on Turning off infoboxes within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Does anyone know how to turn off the following infoboxes: We Also Recommend : and Customers who bought this product ...

      
  1. #1
    New Member
    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0


    Default Turning off infoboxes

    Does anyone know how to turn off the following infoboxes:

    We Also Recommend :
    and
    Customers who bought this product also purchased:

    I have gotten both of these to the point that they contain no information and as such are just headers across the bottom of the screen, but I would like to remove them completely and cannot find where to do it.

    Any help would be appreciated

    Mac

  2. #2
    New Member
    Join Date
    Sep 2003
    Posts
    5
    Rep Power
    0


    Default

    look in the guide. if you edit column_left.php and column_right.php you can remove the infoboxes by commenting them out.

  3. #3
    New Member
    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0


    Default

    Thanks,
    But I am not talking about in the left or right columns as I have those disabled. These two headings are showing up in the categories at the bottm center just above the footer.

    Is there anyway to disable these two functions?

    Thanks,
    Mac

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    look in product_info.php and disable/comment the code that controls the 'also purchased' boxes.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  5. #5
    New Member
    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0


    Default

    I tried commenting out the following:

    <?php

    //Commented for x-sell
    // if ((USE_CACHE == 'true') && empty($SID)) {
    // echo tep_cache_also_purchased(3600);
    // } else {
    // include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
    // }
    // }
    //Added for x sell
    if ( (USE_CACHE == 'false') && !SID) {
    echo tep_cache_also_purchased(3600);
    include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
    } else {
    include(DIR_WS_MODULES . FILENAME_XSELL_PRODUCTS);
    include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS);
    }
    }
    ?>

    Obviously the top portion inside is already commenetd out, but when I comment this block of PHP out, I get a parse error on the product page.

    Any thoughts?

    Mac

  6. #6
    New Member
    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0


    Default

    Sorry bout that last post you said .php I was looking at .tpl.php. lemme check the .php file

    BRB

    Mac

  7. #7
    New Member
    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0


    Default

    Hmm, now I'm a little confused. I did not find anything pertaining to additional boxes in the product_info.php file.

    What I have in that file is posted below;

    <?php
    /*
    $Id: product_info.php,v 1.97 2003/07/01 14:34:54 hpdl Exp $

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

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License
    */

    require('includes/application_top.php');

    require(DIR_WS_LANGUAGES . $language . '/' . FILENAME_PRODUCT_INFO);

    $product_check_query = tep_db_query("select count(*) as total from " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "' and pd.products_id = p.products_id and pd.language_id = '" . (int)$languages_id . "'");
    $product_check = tep_db_fetch_array($product_check_query);

    $content = CONTENT_PRODUCT_INFO;
    $javascript = 'popup_window.js';

    require(DIR_WS_TEMPLATES . TEMPLATENAME_MAIN_PAGE);

    require(DIR_WS_INCLUDES . 'application_bottom.php');
    ?>


    Am I missing something?

    I really appreciate your help!

    Mac

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default

    It looks like you are using MS2-MAX, in which case, you have posted in the incorrect forum. My advice was based on MS2. Anything pertaining to MS2-MAX should be posted in the MS2-MAX forum.

    Since you are using the MS2-MAX, that is the cross sell module and you can turn it off by removing cross-sold products in the admin.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  9. #9
    New Member
    Join Date
    Sep 2003
    Posts
    20
    Rep Power
    0


    Default

    I apologize for the incorrect forum.

    And yes you are correct that I am using MS2-MAX.

    However, I have removed all of the Cross-Associated Products and I am now getting two heading bars with the following text inside:

    We Also Recommend :
    and
    Customers who bought this product also purchased:

    You can see what I mean here:

    http://www.subtlechristianapparel.co...baedc402bd3313

    Any thoughts?

  10. #10
    Active Member red_fraggle's Avatar
    Join Date
    Feb 2004
    Location
    wilmington, NC
    Posts
    343
    Rep Power
    8


    Default

    I beleive as Msasek has said in his previous post, you must remove X-sell products by uninstalling it. Removing the products that you cross sell only leaves you with empty X-sell boxes. Removing that mod will remove those boxes completely.

    Cliff....

Similar Threads

  1. turning off other images for this product
    By lgreitzer in forum osCmax v2 Customization/Mods
    Replies: 8
    Last Post: 10-09-2006, 07:29 PM
  2. Turning On/Off Infobox Admin???
    By ironjaxxx in forum osCmax v2 Customization/Mods
    Replies: 6
    Last Post: 10-03-2006, 05:43 PM
  3. Help! Host turning off allow_url_fopen
    By eyeofhorus in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 03-20-2005, 10:46 AM
  4. Turning notification off?
    By mshaffer in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 02-16-2004, 02:49 PM
  5. turning register_globals OFF
    By ippo in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 01-14-2003, 12:34 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
  •