Web Designs Posted March 12, 2010 Share Posted March 12, 2010 I have checked through almost all of the comments, etc., and unable to find out how to fix an odd problem. I apologize in advance if this is the wrong Topic area. The problem I have is this: when you click on a product, it will go to the page where you can add that item to your cart. On that page, the Notification Box, which says, "Notify me of updates to" [whatever item is showing] is still there. I do not want that box on there as there will never be updates - once the item is sold, it will be taken off of the Product listing. I have commented out, in two places, the catalog/includes/column_right.php so that there is no Notification Box on the front page. So, why is the box still showing on the Product / Add to Cart page? Here is my code for the catalog/includes/column_right.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'); require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); } ?> Any help would be greatly appreciated. I noticed several others have posted the same inquiry, but without response. Thanks. Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted March 12, 2010 Share Posted March 12, 2010 So you have the Tell a Friend and the Reviews commented out, but not the product notification... what exactly are you wanting to not see again? If the item is sold why are you still showing it in your catalog? Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Web Designs Posted March 12, 2010 Author Share Posted March 12, 2010 So you have the Tell a Friend and the Reviews commented out, but not the product notification... what exactly are you wanting to not see again? If the item is sold why are you still showing it in your catalog? In setting up the cart, I commented out several things in the column_left.php and column_right.php to drop a couple of boxes and move one for the front page. That worked just fine. As I mentioned, once the item is sold, it will be removed, therefore I do not need a Notification box on the Product Page - the one that says "Add to Cart". I tried commenting out: //else { include(DIR_WS_BOXES . 'product_notifications.php'); } } //else { include(DIR_WS_BOXES . 'product_notifications.php'); however, all it did was break the cart and not show the product pages at all. Link to comment Share on other sites More sharing options...
♥mdtaylorlrim Posted March 12, 2010 Share Posted March 12, 2010 In setting up the cart, I commented out several things in the column_left.php and column_right.php to drop a couple of boxes and move one for the front page. That worked just fine. As I mentioned, once the item is sold, it will be removed, therefore I do not need a Notification box on the Product Page - the one that says "Add to Cart". I tried commenting out: //else { include(DIR_WS_BOXES . 'product_notifications.php'); } } //else { include(DIR_WS_BOXES . 'product_notifications.php'); however, all it did was break the cart and not show the product pages at all. That's right. You are breaking code by commenting our the }{ codes. Try this... else { // include(DIR_WS_BOXES . 'product_notifications.php'); } } else { // include(DIR_WS_BOXES . 'product_notifications.php'); But, like I said, when an item is sold it can be automatically removed from viewing (set to inactive) if you have your shop configured to: Check Stock = true Subtract stock = true Allow Checkout = false Then when an item is sold it will no longer appear in the catalog. Community Bootstrap Edition, Edge Avoid the most asked question. See How to Secure My Site and How do I...? Link to comment Share on other sites More sharing options...
Web Designs Posted March 14, 2010 Author Share Posted March 14, 2010 Thank you. That did fix the problem. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.