doktorwunder Posted October 3, 2005 Posted October 3, 2005 Hi, I've already posted a topic about that several weeks ago but I got no reply so here I go again :blush: The person I'm doing a osC site for is going to sell unique items (it's like a second-hand store so when a product is sold, it's never available again) so that's why I need to get rid of ALL the reviews stuff. I managed to remove it from the right column, but now I want to remove the 'Reviews' button from the product description page... Anyone has an idea of which files I need to modify? Any advice would be much appreciated :) Thanks for reading! Dr.Wunder Always need help :(
doktorwunder Posted October 3, 2005 Author Posted October 3, 2005 Anyone... really? Dr.Wunder Always need help :(
Guest Posted October 3, 2005 Posted October 3, 2005 for the products description Edit the catalog\product_info.php find this code: <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <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> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> replace it with this: <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> <td class="main" align="right"><?php echo tep_draw_hidden_field('products_id', $product_info['products_id']) . tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td> <td width="10"><?php echo tep_draw_separator('pixel_trans.gif', '10', '1'); ?></td> In the same file find and remove this code: $reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'"); $reviews = tep_db_fetch_array($reviews_query); if ($reviews['count'] > 0) { ?> <tr> <td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td> </tr> <tr> <td><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td> </tr> <?php } backup first
doktorwunder Posted October 3, 2005 Author Posted October 3, 2005 Thanks so much enigma1 :) I'm gonna try this now! Dr.Wunder Always need help :(
doktorwunder Posted October 3, 2005 Author Posted October 3, 2005 So cool :) it worked! Thanks again! Dr.Wunder Always need help :(
Recommended Posts
Archived
This topic is now archived and is closed to further replies.