Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Completely Disable Reviews


Guest

Recommended Posts

Posted

How do I completely diable the "Reviews"?

I know I can remove the box from the right column, but then even if I do that, the ability to write a review still appears on the product pages. I saw a thread in here that explained how to remove that capability altogether, but someone said that doing so messes with the thumbnail images/click to enlarge.

Does anyone know a quick and clean way to completely disable the reviews?

Posted

Oh ok, this may not be the best way, but for now it works great-I just replaced the "Reviews" button with a 1x1 transparent image. Problem solved :)

  • 1 month later...
Posted

if you want to remove the reviews side box do this. This can be used on any box.

 

add to stylesheet:

 

.hidden {

display: none;

}

 

 

then open up the box php file you want to remove find the

 

<tr>

<td>

 

That is above the php code. change it to

 

<tr>

<td class="hidden">

 

Now the box will never show. and you wont get errors

Posted
if you want to remove the reviews side box do this. This can be used on any box.

 

add to stylesheet:

 

.hidden {

display: none;

}

then open up the box php file you want to remove find the

 

<tr>

<td>

 

That is above the php code. change it to

 

<tr>

<td class="hidden">

 

Now the box will never show. and you wont get errors

That's very complicated...

Just open your includes/column_left.php or column_right.php and comment out, or remove, the code for the box you do not want to be displayed.

//  require(DIR_WS_BOXES . 'reviews.php');

instead of

  require(DIR_WS_BOXES . 'reviews.php');

  • 1 month later...
Posted

This removes the Reviews box from the right or left column. However the Reviews button still shows up on the product pages.

Posted

basically all of this solutions won't remove the review, it will only hide the path to review section...

  • 1 year later...
Posted

well, commenting the code //require(DIR_WS_BOXES . 'reviews.php');

and hiding/removing the button/page link is a first step

<? // echo "<a href=".tep_href_link(FILENAME_PRODUCT_REVIEWS, tep_get_all_get_params()) . '">' . tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS)."</a>"; ?>

 

but it does not prevent anyone to access the reviews funtion using the link http://yourgoodhost/catalog/product_review...oducts_id=1xxxx

 

I´ve disable the reviews renaming the files .php to .disable , you can delete them but this way you can always recover them back.

So rename the following files

product_reviews_info.php - to -> product_reviews_info.disable

product_reviews_write.php - to -> product_reviews_write.disable

reviews.php - to -> reviews.disable

product_reviews.php - to -> product_reviews.disable

 

Then any access to http://yourgoodhost/catalog/product_review...oducts_id=1xxxx will return a 404 page error , but since no links/buttons refer to the review this is a good behaviour.

 

Hope it helps

Archived

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

×
×
  • Create New...