Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How do I remove "Reviews" and "Manufacturers&


hanskline

Recommended Posts

  • 2 weeks later...

I have commented out the review box so it does not appear on the right of the screen anymore.

 

However, when a product is selected the reviews button/function appears again. Any advice on destroying this?

 

I DON'T NEED REVIEWS FOR WHAT I AM SELLING!!

Link to comment
Share on other sites

In product_info.php

 

<tr>

       <td><br><table border="0" width="100%" cellspacing="0" cellpadding="0">

         <tr>

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

           <td align="right" class="main"><input type="hidden" name="products_id" value="<?php echo $product_info_values['products_id']; ?>"><?php echo tep_image_submit('button_in_cart.gif', IMAGE_BUTTON_IN_CART); ?></td>

         </tr>

       </table></td>

     </tr>

     <tr>

 

I beleive you comment out or delete the:

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

 

I did this but it was a while ago.

-Doug

Link to comment
Share on other sites

Hi - thanks for the suggestion. I can't verify whether it worked or not since I somehow managed to solve the problem (or at least most of it) by commenting out some other code - though damned if I can find it again.

Link to comment
Share on other sites

  • 4 years later...
Hi - thanks for the suggestion. I can't verify whether it worked or not since I somehow managed to solve the problem (or at least most of it) by commenting out some other code - though damned if I can find it again.

 

As a further note I also wanted to do this in my shop, with the possibility that I may want to revert back to using reviews at some point in the future. I have just created an white image file (gif) 1x1 pixel, and uploaded it to the includes/languages/images/buttons folder. Simple :)

Link to comment
Share on other sites

  • 1 year later...

There is an much easier way to do this WITHOUT removing loads of code:

 

go to 'Catalog -> Includes'

 

open up 'column_left.php' and 'column_right.php' these are the side bars that are shown to the public.

 

there are a shed load of 'If' statements within them

 

find which ones specifically deal with the blocks that you want to remove and comment them out. e.g:

 

here I have commented out the manufacturers block as I dont really need it, with this particular client I only need to show a few blocks:

 

 

column_left.php:

<?php
/*
 $Id: column_left.php 1739 2007-12-20 00:52:16Z hpdl $
 osCommerce, Open Source E-Commerce Solutions
 http://www.oscommerce.com
 Copyright (c) 2003 osCommerce
 Released under the GNU General Public License
*/
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_categories_box();
 } else {
include(DIR_WS_BOXES . 'categories.php');
 }
/* UNCOMMENT TO SHOW MANUFACTURERS AGAIN <-- here I have commented out the manufacturers block
 if ((USE_CACHE == 'true') && empty($SID)) {
echo tep_cache_manufacturers_box();
 } else {
include(DIR_WS_BOXES . 'manufacturers.php');
 }
*/
 require(DIR_WS_BOXES . 'whats_new.php');
 require(DIR_WS_BOXES . 'search.php');
 require(DIR_WS_BOXES . 'information.php');
?>

 

I hope this helps

 

 

Jimmy

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...