Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I disable Notificatons on product_info?


skitchen

Recommended Posts

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.

Link to comment
Share on other sites

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.
Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...