Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Disabling Reviews


ppollock

Recommended Posts

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

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

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

Archived

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

×
×
  • Create New...