gfather Posted February 26, 2006 Posted February 26, 2006 hay guys , i have a custom template and i want to configer it , i want to add best sellers and new products to the right , so what code do i have to include... and i posted earliar that i want to remove the language select and currency from my index.php and they told me to remove include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); in column_right.php but that didnt work ...
njtermite Posted February 26, 2006 Posted February 26, 2006 Include this code.. require(DIR_WS_BOXES . 'whats_new.php'); include(DIR_WS_BOXES . 'best_sellers.php'); If you removed what others said before in column_right.php it shouldn?t be showing up. Most of the time I will just comment out code that I don?t want to work like so? /* if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); }*/ Regards, Mark
gfather Posted February 26, 2006 Author Posted February 26, 2006 Include this code.. require(DIR_WS_BOXES . 'whats_new.php'); include(DIR_WS_BOXES . 'best_sellers.php'); If you removed what others said before in column_right.php it shouldn’t be showing up. Most of the time I will just comment out code that I don’t want to work like so… /* if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { include(DIR_WS_BOXES . 'languages.php'); include(DIR_WS_BOXES . 'currencies.php'); }*/ Regards, Mark man here is my column_right.php <?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 © 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'); } ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.