Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

I don't wan't Reviews


daxcastro

Recommended Posts

Perfect! Thanks.. now how do I get it out of the product pages?

 

Thanks again!

Dax

 

I did the following, in product_info.php around line 212 :-

 

                <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 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>

 

Not sure if it's the best way, but it worked for me :)

Link to comment
Share on other sites

Not sure if it's the best way, but it worked for me :)

 

You should also remove the database query that obtains the number of reviews - it is a wasted call at this point. I've modified the following lines, starting at around 164 (indicated by bold tags...)

 

<?php 
[B] // [/B]$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
[B]//  [/B]  $reviews = tep_db_fetch_array($reviews_query);
[B]//[/B]   if ($reviews['count'] > 0) {
?>
[B]<!--[/B]
  <tr>
       <td class="main"><?php [B]//[/B] echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
     </tr>
     <tr>
       <td><?php // echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
     </tr>
[B]-->[/B]
<?php
[B] //  [/B]}

   if (tep_not_null($product_info['products_url'])) {
?>

 

Larry

Link to comment
Share on other sites

  • 2 months later...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...