This is a discussion on Removing review within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi, I'm modifying MS2-MAX, and I'd like to remove product reviews from the application. I've already removed the box which ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi, I'm modifying MS2-MAX, and I'd like to remove product reviews from the application. I've already removed the box which links to reviews, but there's still a button on the product page opposite the add to cart button. Any advice on how to do this? Thanks, Reid |
|
#2
| |||
| |||
| I would like to do the same, can anybody let us know how to do this !! - thanks |
|
#3
| ||||
| ||||
| In product_info.php (for MS1/2/3) or product_info.tpl.php (for MS2-MAX) look for: Code: <?php
$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>
Code: <tr>
<td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
<tr class="infoBoxContents">
<td><table border="0" width="100%" cellspacing="0" cellpadding="2">
<tr>
<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>
</tr>
</table></td>
</tr>
</table></td>
</tr>
|
|
#4
| |||
| |||
| I did this and now am receiving the following error. Help! |
|
#5
| |||
| |||
| Parse error: parse error in /home/sitesecu/public_html/bio-formllc/product_info.php on line 208 |
|
#6
| |||
| |||
| never mind. Solved it by copying an old version of the same page I had modified previously. And sorry for the anonymous posts - I signed up but my mail is down at the moment. Cheers, Bruce |
|
#7
| |||
| |||
| I to had thi error - I removed on of the brackets on this line, then it worked fine - Thanks very much |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Problems removing Review function | InfernoX | osCMax v2 Customization/Mods | 5 | 10-27-2005 01:56 PM |
| How do I remove the review Button | blum | osCMax v1.7 Discussion | 3 | 11-22-2004 05:06 PM |
| please help review not working | noppie | osCommerce 2.2 Modification Help | 2 | 07-15-2003 07:25 PM |