charmg Posted April 5, 2003 Share Posted April 5, 2003 I have three questions: 1. How do I remove some of the boxes on the left and right-hand side of the software? 2. Is there a way to arrange the products by rows instead of columns in the product listing pages? 3. How do I remove the headings like "What's new here?" Guys, thanks so much for your help in advance! Thanks, Rob OsCommerce Newbie Link to comment Share on other sites More sharing options...
guanche Posted April 5, 2003 Share Posted April 5, 2003 http://wiki.oscommerce.com Link to comment Share on other sites More sharing options...
Druide Posted April 5, 2003 Share Posted April 5, 2003 the osC team is building a great thing at http://wiki.oscommerce.com/Top try that one for most of your questions it's becoming a little treasure... it's WIKI ;) Robert We all need to learn it once, how hard it may seem when you look at it, also you will master it someday ;) Link to comment Share on other sites More sharing options...
charmg Posted April 5, 2003 Author Share Posted April 5, 2003 umm guys, There is hardly nothign these regarding any of my questions. Not to mention hardly nothing there at all. Help would be appreciated. Thanks. :) OsCommerce Newbie Link to comment Share on other sites More sharing options...
charmg Posted April 5, 2003 Author Share Posted April 5, 2003 NM, i found it. But I still cannot find my answers....... OsCommerce Newbie Link to comment Share on other sites More sharing options...
moyashi Posted April 5, 2003 Share Posted April 5, 2003 #1 edit the column_left and column_right files located in includes. #2 hmmm, search in the contributions ... possibly if not look at code and just comment out the html parts that you don't like. #3 edit each file in inlcudes/boxes and what off the first part of the call that calls info_box. In other words a real pain in the A.r.s.e to do. I'm sure this isn't exactly what you're hoping for but it should point you in the right direction. also for #1 there's a column contrib that lets you move the boxes around a bit. Pretty intricate since the contrib author only inlcudes code for the left column while he/she does include code for the right side but leaves it up to you do work it out. Good luck NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
charmg Posted April 5, 2003 Author Share Posted April 5, 2003 I looked in the column_right and _left files. I couldn't find any code that would completely remove the boxes. Can you show me the lines of code? Thanks in advance! OsCommerce Newbie Link to comment Share on other sites More sharing options...
moyashi Posted April 5, 2003 Share Posted April 5, 2003 You have to edit "each file" in includes/boxes/blahblah.php Maybe about 15 or so .... Not in columnright/left. columns_right/left is just for placing the boxes on your pages. NewsDesk(934) / FAQDesk(1106) / OrderCheck(1168) ::: Link to comment Share on other sites More sharing options...
Orphon Posted April 5, 2003 Share Posted April 5, 2003 To remove the boxes, just comment out what you don't want to show Angela Link to comment Share on other sites More sharing options...
charmg Posted April 6, 2003 Author Share Posted April 6, 2003 What do I need to comment out? Here is my manufacturors.php and information.php I completely want to get rid of the manufacturors box. _________________________________________________________ <?php /* $Id: manufacturers.php,v 1.16 2002/05/27 13:25:51 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2001 osCommerce Released under the GNU General Public License */ ?> <!-- manufacturers //--> <tr> <td> <?php $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => BOX_HEADING_MANUFACTURERS); new infoBoxHeading($info_box_contents, false, false); $manufacturers_query = tep_db_query("select manufacturers_id, manufacturers_name from " . TABLE_MANUFACTURERS . " order by manufacturers_name"); if (tep_db_num_rows($manufacturers_query) <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) { // Display a list $manufacturers_list = ''; while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) { $manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers_values['manufacturers_id'], 'NONSSL') . '">' . substr($manufacturers_values['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '</a><br>'; } $info_box_contents = array(); $info_box_contents[] = array('align' => 'left', 'text' => $manufacturers_list); } else { // Display a drop-down $select_box = '<select name="manufacturers_id" onChange="this.form.submit();" size="' . MAX_MANUFACTURERS_LIST . '" style="width: 100%">'; if (MAX_MANUFACTURERS_LIST < 2) { $select_box .= '<option value="">' . PULL_DOWN_DEFAULT . '</option>'; } while ($manufacturers_values = tep_db_fetch_array($manufacturers_query)) { $select_box .= '<option value="' . $manufacturers_values['manufacturers_id'] . '"'; if ($HTTP_GET_VARS['manufacturers_id'] == $manufacturers_values['manufacturers_id']) $select_box .= ' SELECTED'; $select_box .= '>' . substr($manufacturers_values['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '</option>'; } $select_box .= "</select>"; $select_box .= tep_hide_session_id(); $info_box_contents = array(); $info_box_contents[] = array('form' => '<form name="manufacturers" method="get" action="' . tep_href_link(FILENAME_DEFAULT, '', 'NONSSL', false) . '">', 'align' => 'left', 'text' => $select_box); } new infoBox($info_box_contents); ?> </td> </tr> <!-- manufacturers_eof //--> OsCommerce Newbie Link to comment Share on other sites More sharing options...
Orphon Posted April 6, 2003 Share Posted April 6, 2003 in colum_left and colum_right you will see the code refering to each box... comment out the things you don't want to show Angela Link to comment Share on other sites More sharing options...
Guest Posted April 6, 2003 Share Posted April 6, 2003 What do I need to comment out? Here is my manufacturors.php and information.php I completely want to get rid of the manufacturors box. in includes/column_left.php (note this is from MS1-LoadedV on a clients site. I have modified it to remove the manufactures and information boxes, and also left in a mod on the client site that only shows the affiliates box if they are logged in members, so you can get an idea of how easy it is to modify these side columns) <?php /* $Id: column_left.php,v 1.1.1.1 2002/11/28 23:22:03 wilt Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2002 osCommerce Released under the GNU General Public License */ if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } /* Commenting out manufacturers ---- if ( (USE_CACHE == 'true') && !SID) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } */ require(DIR_WS_BOXES . 'whats_new.php'); require(DIR_WS_BOXES . 'search.php'); /* add affiliate box ONLY if they are customer - edu4kids */ if (tep_session_is_registered('customer_id')) require(DIR_WS_BOXES . 'affiliate.php'); /* end edu4kids mod */ /* commenting out information --- require(DIR_WS_BOXES . 'information.php'); */ ?> Link to comment Share on other sites More sharing options...
charmg Posted April 6, 2003 Author Share Posted April 6, 2003 That is fantastic! Thanks you guys! I still can't find where to remove the "What's new here?" and "Lets see what we have here." headings. Which files are these in? Thanks in advance guys! OsCommerce Newbie Link to comment Share on other sites More sharing options...
networkdad Posted April 6, 2003 Share Posted April 6, 2003 That is fantastic! Thanks you guys! I still can't find where to remove the "What's new here?" and "Lets see what we have here." headings. Which files are these in? Thanks in advance guys! Look in the file /catalog/includes/languages/english.php (or whatever language you are using) You'll find most text headings listed in there...just doa search for What's New in the file... HTH ~Jason Link to comment Share on other sites More sharing options...
charmg Posted April 7, 2003 Author Share Posted April 7, 2003 You guys are amazing! That did the trick! :) OsCommerce Newbie Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.