Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reviews off? javascript:emoticon(':blink:', 'smid_10')


mmbeenen

Recommended Posts

Hi!

 

I'm making a web shop for one of my customers and I have worked with a basic setup of OsCommerce, which included Reviewing. Now the customer wants that there is no reviewing possibily. Can anybody tell me how to take it all off?

 

Thanks in advance,

 

Maaike :blink:

Link to comment
Share on other sites

Hi!

 

I'm making a web shop for one of my customers and I have worked with a basic setup of OsCommerce, which included Reviewing. Now the customer wants that there is no reviewing possibily. Can anybody tell me how to take it all off?

 

Thanks in advance,

 

Maaike :blink:

 

In the following file: /includes/column_right.php

 

Try commenting out (add // in front of the line) the line shown here in red:

 

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

require(DIR_WS_BOXES . 'reviews.php');

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

?>

 

 

so it should look like this:

 

include(DIR_WS_BOXES . 'product_notifications.php');

}

} else {

include(DIR_WS_BOXES . 'best_sellers.php');

}

 

if (isset($HTTP_GET_VARS['products_id'])) {

if (basename($PHP_SELF) != FILENAME_TELL_A_FRIEND) include(DIR_WS_BOXES . 'tell_a_friend.php');

} else {

include(DIR_WS_BOXES . 'specials.php');

}

 

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

 

if (substr(basename($PHP_SELF), 0, 8) != 'checkout') {

include(DIR_WS_BOXES . 'languages.php');

include(DIR_WS_BOXES . 'currencies.php');

}

?>

 

If you ever want to add reviews back, then just remove the //

Link to comment
Share on other sites

The reviews button is also shown in the product info page too..

If you also want it removed from there then --

 

 

In product_info.php change:

 

<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>


to


<td class="main"><?php //echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>



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

Link to comment
Share on other sites

  • 2 weeks later...

I tried this and it didn't work for me. I'm not sure if my computer is caching but I thought I cleared it. I double checked my code and it still shows that I commented out these lines.

 

 

 

The reviews button is also shown in the product info page too..

If you also want it removed from there then --

In product_info.php change:

 

<td class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
to
<td class="main"><?php //echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
3. 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>

Link to comment
Share on other sites

:D YEAH... I got it to work.

 

I tried this and it didn't work for me. I'm not sure if my computer is caching but I thought I cleared it. I double checked my code and it still shows that I commented out these lines.
Link to comment
Share on other sites

Archived

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

×
×
  • Create New...