osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

How to disable product reviews?

This is a discussion on How to disable product reviews? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; I would like to disable the "reviews" from my oscommerce template entirely, is this possible? I don't see how is ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 02-29-2004, 09:34 AM
Lurker
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
oscommercehope
Default How to disable product reviews?

I would like to disable the "reviews" from my oscommerce template
entirely, is this possible? I don't see how is it done in the admin?

Thanks-
Isaac
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-01-2004, 06:50 AM
Member
 
Join Date: Jan 2004
Location: edmonton, Alberta, Canada
Posts: 62
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
peteyg
Default

IN includes/column_right.php approx. line 41 its says --> require(DIR_WS_BOXES . 'reviews.php'); you can take that out or just comment it out.
//require(DIR_WS_BOXES . 'reviews.php'); Then in templates/content/product_info.tpl.php at approx line 230 we have
<?php
$reviews_query = tep_db_query("select count(*) as count from " . TABLE_REVIEWS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");
$reviews = tep_db_fetch_array($reviews_query);
if ($reviews['count'] > 0) {
?>
<tr>
<td colspan="2" class="main"><?php echo TEXT_CURRENT_REVIEWS . ' ' . $reviews['count']; ?></td>
</tr>
<tr>
<td colspan="2"><?php echo tep_draw_separator('pixel_trans.gif', '100%', '10'); ?></td>
</tr>
<?php
}

Basically comment the php and I believe your tables should be fine. Other than this I'm not sure if the reviews show up any where else if so then its a matter of finding the code and commenting it out.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Posting reviews delphi1 osCommerce 2.2 Modification Help 0 10-24-2005 07:01 PM
Disable purchase and reviews shirster osCommerce 2.2 Modification Help 3 09-07-2005 04:39 AM
Reviews RCarlton osCommerce 2.2 Modification Help 3 12-12-2004 05:18 PM
How to disable product add date Plastic osCMax v1.7 Discussion 2 05-13-2004 10:57 AM
Product reviews Jood osCMax v1.7 General Mods Discussion 0 03-27-2004 05:54 AM


All times are GMT -8. The time now is 08:59 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax