Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can I remove the review button all together?


sina

Recommended Posts

Posted

How can I remove the review functionality?

 

I basically want to remove the review button all together.

 

Thanks much

Posted

In product_info.php this counts them:

 

<?php

   $reviews = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "'");

   $reviews_values = tep_db_fetch_array($reviews);

   if ($reviews_values['count'] > 0) {

?>

     <tr>

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

     </tr>

 

This displays the Review button and link:

 

            <td class="main"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><?php echo tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS); ?></a></td>

 

In /includes/column_right.php this shows the Review Box:

 

  if ( !(DOWN_FOR_MAINTENANCE=='1' and DOWN_FOR_MAINTENANCE_LOGIN_OFF=='1') ) {

   require(DIR_WS_BOXES . 'reviews.php');

 }

 

And I think that about covers it ... I think ... hmmm ... :?

Posted

Hello everyone.

 

My product names are kind of long. How can I increase the width of the cell (where the category) field is.

 

Currently all the products names wrap around.

 

Thanks much

  • 3 years later...
Posted

Hi Linda, I tried the following and it worked thanks. However, I could not find the following IF statement in the column_right.php file and as such have not deleted it. Can you please tell me where it is located? Thanks, Max. Here is the IF statement I couldn't find:

if ( !(DOWN_FOR_MAINTENANCE=='1' and DOWN_FOR_MAINTENANCE_LOGIN_OFF=='1') )

 

 

 

In product_info.php this counts them:

<?php

? ?$reviews = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "'");

? ?$reviews_values = tep_db_fetch_array($reviews);

? ?if ($reviews_values['count'] > 0) {

?>

? ? ?<tr>

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

? ? ?</tr>

This displays the Review button and link:

 ? ? ? ? ? ?<td class="main"><a href="<?php echo tep_href_link(FILENAME_PRODUCT_REVIEWS, substr(tep_get_all_get_params(), 0, -1)); ?>"><?php echo tep_image_button('button_reviews.gif', IMAGE_BUTTON_REVIEWS); ?></a></td>

In /includes/column_right.php this shows the Review Box:

 ?if ( !(DOWN_FOR_MAINTENANCE=='1' and DOWN_FOR_MAINTENANCE_LOGIN_OFF=='1') ) {

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

?}

And I think that about covers it ... I think ... hmmm ... :?

Archived

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

×
×
  • Create New...