ppollock Posted February 18, 2005 Share Posted February 18, 2005 Hi, I'm trying to save some screen space and download times so I'm looking for things that don't need to be there and have decided that since not one of our customers has ever left a review, I really don't need the reviews module to be activated. Is there any easy way to switch it off? Regards Peter Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2005 Share Posted February 18, 2005 Here's what to do. Open catalog/includes/column_right.php and change require(DIR_WS_BOXES . 'reviews.php'); to //require(DIR_WS_BOXES . 'reviews.php'); Now open catalog/product_info.php and change <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> to <td class="main"><?php //echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> also change <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> 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> Have fun! :thumbsup: Link to comment Share on other sites More sharing options...
ArtRat Posted February 18, 2005 Share Posted February 18, 2005 catalog/includes/column_right.php find ?require(DIR_WS_BOXES . 'reviews.php'); change to ?// require(DIR_WS_BOXES . 'reviews.php'); that keeps the box from displaying. does that also stop the database queries? hmmmm. thats all i know about that. edit: ya do that first thingy by alpha :P Link to comment Share on other sites More sharing options...
Guest Posted February 18, 2005 Share Posted February 18, 2005 By commenting out that line, you effectively deleted all codes (including extra database queries) in catalog/includes/boxes/review.php Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.