osCmax v2.5 User Manual
Results 1 to 2 of 2

How to disable product reviews?

This is a discussion on How to disable product reviews? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I would like to disable the "reviews" from my oscommerce template entirely, is this possible? I don't see how is ...

      
  1. #1
    Lurker
    Join Date
    Feb 2004
    Posts
    4
    Rep Power
    0


    Default How to disable product reviews?

    I would like to disable the "reviews" from my oscommerce template
    entirely, is this possible? I don't see how is it done in the admin?

    Thanks-
    Isaac

  2. #2
    Member
    Join Date
    Jan 2004
    Location
    edmonton, Alberta, Canada
    Posts
    62
    Rep Power
    0


    Default

    IN includes/column_right.php approx. line 41 its says --> require(DIR_WS_BOXES . 'reviews.php'); you can take that out or just comment it out.
    //require(DIR_WS_BOXES . 'reviews.php'); Then in templates/content/product_info.tpl.php at approx line 230 we have
    <?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 colspan="2" class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
    </tr>
    <tr>
    <td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
    </tr>
    <?php
    }

    Basically comment the php and I believe your tables should be fine. Other than this I'm not sure if the reviews show up any where else if so then its a matter of finding the code and commenting it out.

Similar Threads

  1. Posting reviews
    By delphi1 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 10-24-2005, 07:01 PM
  2. Disable purchase and reviews
    By shirster in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 09-07-2005, 04:39 AM
  3. Reviews
    By RCarlton in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 12-12-2004, 04:18 PM
  4. How to disable product add date
    By Plastic in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 05-13-2004, 10:57 AM
  5. Product reviews
    By Jood in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 03-27-2004, 04:54 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •