ksaun Posted May 6, 2005 Share Posted May 6, 2005 Hey All, :P How do I remove the "Customers who bought this product also purchased" box from my site? It really doesn't apply to my site. Also How do I remove the Review Buttons from my site? :blink: My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
dave111 Posted May 6, 2005 Share Posted May 6, 2005 The quickest/easiest way i found to remove the reviews button is to replace includes/languages/english/images/buttons/button_reviews.gif with images/pixal_trans.gif This will make the button invisible and unclickable *and it only takes 2 seconds to do* :D Not sure how to remove the "also purchased" Link to comment Share on other sites More sharing options...
ksaun Posted May 9, 2005 Author Share Posted May 9, 2005 Anybody?? :blink: My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
Jumping Rabbit Posted May 9, 2005 Share Posted May 9, 2005 1. remove reviews button... Remove this code from product_info.php <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> 2. Remove also purchased: Remove this code from product_info.php <td> <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } ?> </td> Faster Checkout - osCommerce Knowledge Base - Anyone meet offline?, Has anyone of you cyberkids meet offline? For newbees do atleast read this 4 points: Basic info - Search tips and help - Posting tips and help - Basics for Design Link to comment Share on other sites More sharing options...
ksaun Posted May 9, 2005 Author Share Posted May 9, 2005 1. remove reviews button...Remove this code from product_info.php <td class="main"><?php echo '<a href="' . tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS) . '</a>'; ?></td> 2. Remove also purchased: Remove this code from product_info.php ? ? ? <td> <?php ? ?if ((USE_CACHE == 'true') && empty($SID)) { ? ? ?echo tep_cache_also_purchased(3600); ? ?} else { ? ? ?include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); ? ?} ?} ?> ? ? ? ?</td> <{POST_SNAPBACK}> I removed the code for the Review Button OK. But when I remove the code for the other code for the "also purchased" I get this error. Parse error: parse error, unexpected $ in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/product_info.php on line 297 any ideas? :huh: BTW there is no code on line 297 My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
Geotex Posted May 9, 2005 Share Posted May 9, 2005 I removed the code for the Review Button OK. But when I remove the code for the other code for the "also purchased" I get this error.any ideas? :huh: BTW there is no code on line 297 <{POST_SNAPBACK}> Yes, you did get errors. You cannot remove the cells, it will cause coding problems with incomplete table/rows/cells problems. In the 2 areas mentioned, right after the <?php enter a space, then /* and just before the closing ?> in each section, enter */ This will comment out the calls, and not interfere with table structures. Also won't change the line numbers for future reference to problems. hth GEOTEX from Houston, TX (George) Link to comment Share on other sites More sharing options...
ksaun Posted May 9, 2005 Author Share Posted May 9, 2005 Yes, you did get errors. You cannot remove the cells, it will cause coding problems with incomplete table/rows/cells problems. In the 2 areas mentioned, right after the <?php enter a space, then /* and just before the closing ?> in each section, enter */ This will comment out the calls, and not interfere with table structures. Also won't change the line numbers for future reference to problems. hth <{POST_SNAPBACK}> OK I did what you suggested and I still get an error..... Parse error: parse error, unexpected $ in /hsphere/local/group-1/home/ksaun/tonerjunction.com/catalog/product_info.php on line 304 Here is Line 304 <?php require(DIR_WS_INCLUDES . 'application_bottom.php'); ?> Here is a copy of my code for the "Also Purchaced" after the changes: <?php /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } } */ ?> Any Ideas? :blink: My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
Geotex Posted May 9, 2005 Share Posted May 9, 2005 I guess you found the problem, as I don't get any errors on your site. GEOTEX from Houston, TX (George) Link to comment Share on other sites More sharing options...
ksaun Posted May 9, 2005 Author Share Posted May 9, 2005 I guess you found the problem, as I don't get any errors on your site. <{POST_SNAPBACK}> No, I didn't I just removed the /* and */ from the statement. I still need a fix for this :blush: My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
kgt Posted May 9, 2005 Share Posted May 9, 2005 You put the */ after the wrong closing bracket. Try: <?php /* if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_also_purchased(3600); } else { include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); } */ } ?> Contributions Discount Coupon Codes Donations Link to comment Share on other sites More sharing options...
ksaun Posted May 9, 2005 Author Share Posted May 9, 2005 You put the */ after the wrong closing bracket. Try: <?php ? /* if ((USE_CACHE == 'true') && empty($SID)) { ? ? echo tep_cache_also_purchased(3600); ? } else { ? ? include(DIR_WS_MODULES . FILENAME_ALSO_PURCHASED_PRODUCTS); ? } */ } ?> <{POST_SNAPBACK}> Thanks :thumbsup: My Favorite Quote from a movie. Question: How do you know women sooo well? Answer: I think of a man, then take away reason and accountability. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.