Guest Posted November 15, 2007 Posted November 15, 2007 I am a bit confused with the software at this point and I was hoping for some guidance. I took over a site that some other folks have worked on and the thing is in pretty bad shape. It has multiple installs of oscommerce and has hard coded items. The first thing I am trying to do is fix the menu because new categories are not showing up on the menu when they are added through the control panel but they are showing up in the content area. My question is what file should the menu item be pulled from. I assume that it should actually be coming from the database, but I am thinking that something may have been hard coded in that should not be there. What files should I review that are menu related? Thanks
♥geoffreywalton Posted November 15, 2007 Posted November 15, 2007 Depends where the other guys put them, but the best place to start would be looking in the files in catalog\includes Need help installing add ons/contributions, cleaning a hacked site or a bespoke development, check my profile Virus Threat Scanner My Contributions Basic install answers. Click here for Contributions / Add Ons. UK your site. Site Move. Basic design info. For links mentioned in old answers that are no longer here follow this link Useful Threads. If this post was useful, click the Like This button over there ======>>>>>.
Guest Posted November 16, 2007 Posted November 16, 2007 Depends where the other guys put them, but the best place to start would be looking in the files in catalog\includes Thanks Geoffrey, this thing is quite a mess...appreciate the help.
Guest Posted November 16, 2007 Posted November 16, 2007 Depends where the other guys put them, but the best place to start would be looking in the files in catalog\includes I did some searching and it is using an STS template. I am guessing that the file sts_column_left.php would be the file that dictates what shows on the menu but I don't see anything. Here it is: <?php /* $Id: sts_column_left.php,v 4.1 2006/03/05 22:06:41 rigadin Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2005 osCommerce Released under the GNU General Public License STS v4.1 by Rigadin ([email protected]) Based on: Simple Template System (STS) - Copyright (c) 2004 Brian Gallagher - [email protected] */ $sts->start_capture(); // Get categories box from db or cache if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } $sts->restart_capture ('categorybox', 'box'); // Get manufacturer box from db or cache if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_manufacturers_box(); } else { include(DIR_WS_BOXES . 'manufacturers.php'); } $sts->restart_capture ('manufacturerbox', 'box'); require(DIR_WS_BOXES . 'dm_categories.php'); $sts->restart_capture ('dynamenu', 'box'); // Get DynaMenu box require(DIR_WS_BOXES . 'price_break.php'); $sts->restart_capture ('pricebreakbox', 'box'); // Get Price Break box require(DIR_WS_BOXES . 'whats_new.php'); $sts->restart_capture ('whatsnewbox', 'box'); // Get What's new box require(DIR_WS_BOXES . 'search.php'); $sts->restart_capture ('searchbox', 'box'); // Get search box require(DIR_WS_BOXES . 'information.php'); $sts->restart_capture ('informationbox', 'box'); // Get information box require(DIR_WS_BOXES . 'shopping_cart.php'); $sts->restart_capture ('cartbox', 'box'); // Get shopping cart box if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); $sts->restart_capture ('maninfobox', 'box'); // Get manufacturer info box (empty if no product selected) if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); $sts->restart_capture ('orderhistorybox', 'box'); // Get customer's order history box (empty if visitor not logged) include(DIR_WS_BOXES . 'best_sellers.php'); $sts->restart_capture ('bestsellersbox_only', 'box'); // Get bestseller box only, new since v4.0.5 // Get bestseller or product notification box. If you use this, do not use these boxes separately! if (isset($HTTP_GET_VARS['products_id'])) { include(DIR_WS_BOXES . 'product_notifications.php'); $sts->restart_capture ('notificationbox', 'box'); // Get product notification box // Get bestseller or product notification box. If you use this, do not use these boxes separately! if (tep_session_is_registered('customer_id')) { $check_query = tep_db_query("select count(*) as count from " . TABLE_CUSTOMERS_INFO . " where customers_info_id = '" . (int)$customer_id . "' and global_product_notifications = '1'"); $check = tep_db_fetch_array($check_query); if ($check['count'] > 0) { $sts->template['bestsellersbox']=$sts->template['bestsellersbox_only']; // Show bestseller box if customer asked for general notifications } else { $sts->template['bestsellersbox']=$sts->template['notificationbox']; // Otherwise select notification box } } else { $sts->template['bestsellersbox']=$sts->template['notificationbox']; // } } else { $sts->template['bestsellersbox']=$sts->template['bestsellersbox_only']; $sts->template['notificationbox']=''; } include(DIR_WS_BOXES . 'specials.php'); $sts->restart_capture ('specialbox', 'box'); // Get special box $sts->template['specialfriendbox']=$sts->template['specialbox']; // Shows specials or tell a friend if (isset($HTTP_GET_VARS['products_id']) && basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) { include(DIR_WS_BOXES . 'tell_a_friend.php'); $sts->restart_capture ('tellafriendbox', 'box'); // Get tell a friend box $sts->template['specialfriendbox']=$sts->template['tellafriendbox']; // Shows specials or tell a friend } else $sts->template['tellafriendbox']=''; // Get languages and currencies boxes, empty if in checkout procedure if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); $sts->restart_capture ('languagebox', 'box'); include(DIR_WS_BOXES . 'currencies.php'); $sts->restart_capture ('currenciesbox', 'box'); } else { $sts->template['languagebox']=''; $sts->template['currenciesbox']=''; } if (basename($PHP_SELF) != FILENAME_PRODUCT_REVIEWS_INFO) { require(DIR_WS_BOXES . 'reviews.php'); $sts->restart_capture ('reviewsbox', 'box'); // Get the reviews box } else { $sts->template['reviewsbox']=''; } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.