shellyky Posted March 25, 2004 Share Posted March 25, 2004 id like to get rid of language, currency and notifications from all the side menus...Which file is this in that i should edit? Link to comment Share on other sites More sharing options...
241 Posted March 25, 2004 Share Posted March 25, 2004 catalog/includes/column_right.php comment out what you dont want but watch as there are if and else statements try this if (isset($HTTP_GET_VARS['products_id'])) { 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) { include(DIR_WS_BOXES . 'best_sellers.php'); } /* else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } */ } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); /* if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } */ No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
shellyky Posted March 25, 2004 Author Share Posted March 25, 2004 cool, ill try that...thanks! Link to comment Share on other sites More sharing options...
shellyky Posted March 25, 2004 Author Share Posted March 25, 2004 that gives me a parse error on line 47 ( thats the ?> line ) Link to comment Share on other sites More sharing options...
241 Posted March 25, 2004 Share Posted March 25, 2004 ok lets do this in stages then <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { 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) { include(DIR_WS_BOXES . 'best_sellers.php'); } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); /* if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } */ ?> this removes the languages and currencies No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
shellyky Posted March 25, 2004 Author Share Posted March 25, 2004 yes i was able to get the lang/curr off......just not the notifications...no biggie tho, thats the main thing i was wanting off..thanks amillion :) :D Link to comment Share on other sites More sharing options...
241 Posted March 25, 2004 Share Posted March 25, 2004 the other part for notification can be done as well I only wanted to do it in stages do you want to keep the best sellers box if not then locate this bit of code if (isset($HTTP_GET_VARS['products_id'])) { ? 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) { ? ? ? include(DIR_WS_BOXES . 'best_sellers.php'); ? ? } else { ? ? ? include(DIR_WS_BOXES . 'product_notifications.php'); ? ? } ? } else { ? ? include(DIR_WS_BOXES . 'product_notifications.php'); ? } } else { ? include(DIR_WS_BOXES . 'best_sellers.php'); } and change to this /* if (isset($HTTP_GET_VARS['products_id'])) { ? 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) { ? ? ? include(DIR_WS_BOXES . 'best_sellers.php'); ? ? } else { ? ? ? include(DIR_WS_BOXES . 'product_notifications.php'); ? ? } ? } else { ? ? include(DIR_WS_BOXES . 'product_notifications.php'); ? } } else { ? include(DIR_WS_BOXES . 'best_sellers.php'); } */ if you want to keep the best sellers then if (isset($HTTP_GET_VARS['products_id'])) { ? 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) { ? ? ? include(DIR_WS_BOXES . 'best_sellers.php'); ? ? } /* else { ? ? ? include(DIR_WS_BOXES . 'product_notifications.php'); ? ? } */ ? } /* else { ? ? include(DIR_WS_BOXES . 'product_notifications.php'); ? } */ } else { ? include(DIR_WS_BOXES . 'best_sellers.php'); } and this is how the entire file looks <?php /* $Id: column_right.php,v 1.17 2003/06/09 22:06:41 hpdl Exp $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'shopping_cart.php'); if (isset($HTTP_GET_VARS['products_id'])) include(DIR_WS_BOXES . 'manufacturer_info.php'); if (tep_session_is_registered('customer_id')) include(DIR_WS_BOXES . 'order_history.php'); if (isset($HTTP_GET_VARS['products_id'])) { 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) { include(DIR_WS_BOXES . 'best_sellers.php'); } /* else { include(DIR_WS_BOXES . 'product_notifications.php'); } */ } /* else { include(DIR_WS_BOXES . 'product_notifications.php'); } */ } else { include(DIR_WS_BOXES . 'best_sellers.php'); } if (isset($HTTP_GET_VARS['products_id'])) { if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php'); } else { include(DIR_WS_BOXES . 'specials.php'); } require(DIR_WS_BOXES . 'reviews.php'); /* if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); } */ ?> this removes the notifications but keeps the best sellers and removes the languages and currencies No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.