tec Posted January 12, 2006 Posted January 12, 2006 hi there, how would i go about removing teh product notification box in teh column_right.php? i tried to comment it out but then i get a parsing error here is my code and the parts i tried to comment out 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'); }
MoisesZaragoza Posted January 12, 2006 Posted January 12, 2006 well that looks like it's commented out you can also try /* ALL YOUR COMMENTS ALL YOUR COMMENTS ALL YOUR COMMENTS ALL YOUR COMMENTS */ or you can also use the pund sing # at the end of the day the code will be good
tec Posted January 12, 2006 Author Posted January 12, 2006 well that looks like it's commented out you can also try /* ALL YOUR COMMENTS ALL YOUR COMMENTS ALL YOUR COMMENTS ALL YOUR COMMENTS */ or you can also use the pund sing # hiya there, ok i tried what you said and i get this Parse error: parse error, unexpected $ in /home/race2way/public_html/includes/column_right.php on line 52 now on line 52 i have ?> here is my code for the whole page <?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 (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'loginbox.php'); 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'); //} ?> <<<<<____THIS IS LINE 52
MoisesZaragoza Posted January 12, 2006 Posted January 12, 2006 /*else { include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } */ } // Thils last one has to end the if at the end of the day the code will be good
tec Posted January 12, 2006 Author Posted January 12, 2006 /*else {include(DIR_WS_BOXES . 'product_notifications.php'); } } else { include(DIR_WS_BOXES . 'product_notifications.php'); } */ } // Thils last one has to end the if i still get this.... Parse error: parse error, unexpected $ in /home/race2way/public_html/includes/column_right.php on line 52 line 52 being the ?> <?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 (c) 2003 osCommerce Released under the GNU General Public License */ require(DIR_WS_BOXES . 'loginbox.php'); 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'); } */ } // Thils last one has to end the if 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'); //} ?>
tec Posted January 12, 2006 Author Posted January 12, 2006 woo hoo, i got it, thanks to your help i was able to atleast know what i was looking for 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'); }
MoisesZaragoza Posted January 12, 2006 Posted January 12, 2006 I'm glad that you got it to work at the end of the day the code will be good
tec Posted January 12, 2006 Author Posted January 12, 2006 I'm glad that you got it to work thank you very much have a wonderful day :D
Recommended Posts
Archived
This topic is now archived and is closed to further replies.