skitchen Posted October 16, 2006 Posted October 16, 2006 I don't want the notifications box on the product_info page. Anybody have a clue on where I would disable this?
skitchen Posted October 17, 2006 Author Posted October 17, 2006 I have been changing the boxes by going into column_right and column_left with no prorblem but when I click on a product I get a new "Notifications" box that comes up and I don't want it there. require(DIR_WS_BOXES . 'shopping_cart.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 ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); I'm not too php savvy and I can't seem to get rid of it. I tried just deleting the whole if /else statement but I just got an error. Any help would be appreciated.
desidil4ever Posted October 17, 2006 Posted October 17, 2006 try using this code require(DIR_WS_BOXES . 'shopping_cart.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 ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); Simple Add-ons Please add simple plain tips here for others.
skitchen Posted October 18, 2006 Author Posted October 18, 2006 desi, That worked perfectly. Thank you very much.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.