lglapion Posted August 27, 2008 Share Posted August 27, 2008 What am I missing? Thanks!!! // BOF Separate Pricing Per Customer v4.1, Hide products and categories from groups if(!tep_session_is_registered('sppc_customer_group_id')) { $customer_group_id = '0'; } else { $customer_group_id = $sppc_customer_group_id; } global $hide_product; // is determined in product_info.php // on other pages we'll check it with a query if (!isset($hide_product) && isset($HTTP_GET_VARS['products_id'])) { $hide_product = tep_get_hide_status_single($customer_group_id, (int)$HTTP_GET_VARS['products_id']); } else { $hide_product = false; } if (isset($HTTP_GET_VARS['products_id']) && $hide_product == false) 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 { (($hide_product == false )? include(DIR_WS_BOXES . 'product_notifications.php') : ''); } } else { (($hide_product == false)? 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 && $hide_product == false) { include(DIR_WS_BOXES . 'tell_a_friend.php'); } // end if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND && $hide_product == false) } else { include(DIR_WS_BOXES . 'specials.php'); } // end if (isset($HTTP_GET_VARS['products_id'])) if ($hide_product == false) { require(DIR_WS_BOXES . 'reviews.php'); } // EOF Separate Pricing Per Customer v4.1, Hide products and categories from groups if (substr(basename($PHP_SELF), 0, 8) != 'checkout') { //include(DIR_WS_BOXES . 'languages.php'); //include(DIR_WS_BOXES . 'currencies.php'); } ?> <tr><td><img src="images/creditcards.gif" width="197" height="75" border="0"> <?php ?> Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.