murtim Posted May 17, 2007 Share Posted May 17, 2007 Please help I want to delete this manufacturer box anything related with the manufacturer how can i do that Please help thank MK Quote Link to comment Share on other sites More sharing options...
Ackis Posted May 17, 2007 Share Posted May 17, 2007 Don't delete it because it often comes with a lot of trouble... outcode it instead. I have done like this... in the column right php file... /* slash and star both before and after... 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'); } Good luck! Regards Jessica Quote Jessica Fuchs Link to comment Share on other sites More sharing options...
php4ever Posted May 17, 2007 Share Posted May 17, 2007 Don't delete it because it often comes with a lot of trouble... outcode it instead. I have done like this... in the column right php file... /* slash and star both before and after... 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'); } Good luck! Regards Jessica Yep, excellent advise Jessica, lots and lots of people delete code only to later panic when something doesn't work. ~ Jared Quote www.jaredritchey.com Link to comment Share on other sites More sharing options...
Ackis Posted May 18, 2007 Share Posted May 18, 2007 Thank you :rolleyes: I've propably learned some things at least during my looooong road with OsCommerce :) Regards Jessica Quote Jessica Fuchs 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.