shirster Posted October 11, 2005 Posted October 11, 2005 I would like to turn the "Review" function off completely. Is there a way to do this? Thanks in advance ! follow my heart, NOT my head
wheeloftime Posted October 12, 2005 Posted October 12, 2005 I would like to turn the "Review" function off completely. Is there a way to do this? Thanks in advance ! The easiest way is to make sure the button doesn't show up so it can't be used and you will not be bothered anymore by it. For that go to your (catalog)/product_info.php and search for: <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> change that to <!-- <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> --> Something above there is also a query for pulling in existing reviews which doesn't harm if you leave that as is (there are none anyway) but if you want to slice back one query to the database you can look for <?php $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); and change that to <?php // $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); That is all.
♥Monika in Germany Posted October 12, 2005 Posted October 12, 2005 if you still have the reviews box in column right, comment that out too! :-) Monika addicted to writing code ... can't get enough of databases either, LOL! my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum Interactive Media Award July 2007 ~ category E-Commerce my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...
wheeloftime Posted October 12, 2005 Posted October 12, 2005 if you still have the reviews box in column right, comment that out too! Wow, forgot about that one. Thanks Monika !
shirster Posted October 12, 2005 Author Posted October 12, 2005 thanks for the direction guys ! works perfectly ! ps. for those of you who use BTS like i do, it's the catalog/templates/fallback/content/product_info.tpl.php file you wanna look at. :thumbsup: follow my heart, NOT my head
Recommended Posts
Archived
This topic is now archived and is closed to further replies.