Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How to remove the function "reviews"?


lovesdonut

Recommended Posts

Posted

I would like to remove all the buttons and files related to product reviews from my website. Can anyone help please? Do I just need to removed the files "product_preview.php, product_reviews_info.php and product_reviews_write.php" or is there something else I need to do to remove the review function? Thanks so much for your help in advance!!!

Posted

Keep the files just in case you change your mind in the future as i changed :). I just commented out the code. It is very simple.

 

To comment out the reviews button:

 

in catalog/product_info.php

 

around line 164 find this:

 

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

 

Just comment it out or replace with this:

				<?php /*?><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><?php */?>

 

in catalog/includes/column_right.php

 

Find this around line 41 and

 

require(DIR_WS_BOXES . 'reviews.php');

 

comment it out with adding two slashes (//)

 

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

 

That should be it. In case you change your mind in the future just remove the comments.

Posted

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

 

line 212 on product_info.php.just delete or comment it.

 

 

require(DIR_WS_BOXES . 'reviews.php') in column_right.php to be replaced with

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

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Only by a code hack, not through the admin interface?

 

Dear Satish, and all,

 

Thank you for your rapid response to the original enquirer.

 

I think that your response is the same as the other responder in this thread ...

 

Sorry for being dumb, but ... this means ...

 

There is no way in v2.2 to control the Reviews function from the Administrator control panel?

 

It can only be 'hacked' in the code?

 

Thanks!

Posted

Hi Amanda,

 

 

That is correct. There isn't currently a admin function to disable the Reviews module of OSC. You must comment out the code as instructed above to remove the Reviews Feature.

 

 

 

Chris

Posted

$random_select = "select r.reviews_id, r.reviews_rating, p.products_id, p.products_image, pd.products_name from " . TABLE_REVIEWS . " r, " . TABLE_REVIEWS_DESCRIPTION . " rd, " . TABLE_PRODUCTS . " p, " . TABLE_PRODUCTS_DESCRIPTION . " pd where p.products_status = '1' and p.products_id = r.products_id and r.reviews_id = rd.reviews_id and rd.languages_id = '" . (int)$languages_id . "' and p.products_id = pd.products_id and pd.language_id = '" . (int)$languages_id . "'";

 

This is the query that gets fired.

 

The where conditions clearly suggests there is no admin control on this.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...