Post by nosleephotel » Thu Sep 24, 2009 5:50 am

gws wrote:I just had to do this on the latest version 1.3.2 catalog/view/theme/default/template/product/product.tpl
I just commented out line 96 with <!--
and line 176 with --> and this has removed it all for me.
Thanks for the tip, gws. I wanted the Description, Additional Images and Related Products so this is what I commented out:

Code: Select all

<!-- Comment out Average Rating
            <tr>
              <td><b><?php echo $text_average; ?></b></td>
              <td><?php if ($average) { ?>
                <img src="catalog/view/theme/default/image/stars_<?php echo $average . '.png'; ?>" alt="<?php echo $text_stars; ?>" style="margin-top: 2px;" />
                <?php } else { ?>
                <?php echo $text_no_rating; ?>
                <?php } ?></td>
            </tr> -->
Line 35-42: This is commented out to hide the "Average Rating" above the "Add to Cart" button.

Code: Select all

<!-- Comment out Review Tab <a tab="#tab_review"><?php echo $tab_review; ?></a> -->
Line 97: Hides the "Reviews" tab.

Code: Select all

<div id="tab_review" class="page">
    <div id="review"></div>
    <div class="heading" id="review_title"><?php echo $text_write; ?></div>
    <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><b><?php echo $entry_name; ?></b><br />
      <input type="text" name="name" value="" />
      <br />
      <br />
      <b><?php echo $entry_review; ?></b>
      <textarea name="text" style="width: 99%;" rows="8"></textarea>
      <span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
      <br />
      <b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span>&nbsp;
      <input type="radio" name="rating" value="1" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="2" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="3" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="4" style="margin: 0;" />
      &nbsp;
      <input type="radio" name="rating" value="5" style="margin: 0;" />
      &nbsp; <span><?php echo $entry_good; ?></span><br />
      <br />
      <b><?php echo $entry_captcha; ?></b><br />
      <input type="text" name="captcha" value="" />
      <br />
      <img src="index.php?route=product/product/captcha" id="captcha" /></div>
    <div class="buttons">
      <table>
        <tr>
          <td align="right"><a onclick="review();" class="button"><span><?php echo $button_continue; ?></span></a></td>
        </tr>
      </table>
    </div>
  </div> -->
Line 99-133: Hides the div that displays the reviews submission form and any submitted reviews.

Hope this helps someone! :)

User avatar
New member

Posts

Joined
Sat Sep 19, 2009 5:25 am
Location - Los Angeles, CA

Post by deeve » Thu Dec 31, 2009 5:39 pm

Many thanks, nosleephotel, this has helped me greatly to understand & remove the Reviews feature. My client's stock are mostly one-offs & therefore this feature was pretty redundant to his customers.

I did have one other question, which I've posted on a separate, but related thread regarding how to adjust the drop-down Select order box within Categorys:

http://forum.opencart.com/viewtopic.php ... 036#p43036

In a nutshell, have utilized the rating variable to display 'Latest Arrivals' in each category but would now care to delete the $rating_DESC option as is now redundant & wondered where this resides in the code..

Active Member

Posts

Joined
Tue Oct 20, 2009 4:31 pm

Post by nosleephotel » Sat Jan 02, 2010 4:38 am

deeve wrote:Many thanks, nosleephotel, this has helped me greatly to understand & remove the Reviews feature. My client's stock are mostly one-offs & therefore this feature was pretty redundant to his customers
Glad I could help.
deeve wrote:I did have one other question, which I've posted on a separate, but related thread regarding how to adjust the drop-down Select order box within Categorys:

http://forum.opencart.com/viewtopic.php ... 036#p43036

In a nutshell, have utilized the rating variable to display 'Latest Arrivals' in each category but would now care to delete the $rating_DESC option as is now redundant & wondered where this resides in the code..
Not sure how to do this. Hopefully someone else here can tell you. Did you search the forum to see if it had already been answered? If you get no reply from this thread or the other you posted in, I would recommend starting a new thread (others may disagree with me >:D ) with a descriptive title to try to catch the eye of someone who may know.

User avatar
New member

Posts

Joined
Sat Sep 19, 2009 5:25 am
Location - Los Angeles, CA

Post by Gaxas » Fri Feb 19, 2010 2:05 am

Anyone have idea, how to remove Reviews in 1.4 version ? Thank's

Newbie

Posts

Joined
Fri Feb 19, 2010 2:01 am

Post by Kalen » Mon Feb 22, 2010 7:03 pm

Gaxas wrote:Anyone have idea, how to remove Reviews in 1.4 version ? Thank's
go to product.tpl and comment (<!--code-->) this lines

line 41 to 48

Code: Select all

<tr>
                <td><b><?php echo $text_average; ?></b></td>
                <td><?php if ($average) { ?>
                  <img src="catalog/view/theme/default/image/stars_<?php echo $average . '.png'; ?>" alt="<?php echo $text_stars; ?>" style="margin-top: 2px;" />
                  <?php } else { ?>
                  <?php echo $text_no_rating; ?>
                  <?php } ?></td>
              </tr>
line 103

Code: Select all

<a tab="#tab_review"><?php echo $tab_review; ?>
line 105 to 139

Code: Select all

<div id="tab_review" class="tab_page">
      <div id="review"></div>
      <div class="heading" id="review_title"><?php echo $text_write; ?></div>
      <div style="background: #F7F7F7; border: 1px solid #DDDDDD; padding: 10px; margin-bottom: 10px;"><b><?php echo $entry_name; ?></b><br />
        <input type="text" name="name" value="" />
        <br />
        <br />
        <b><?php echo $entry_review; ?></b>
        <textarea name="text" style="width: 99%;" rows="8"></textarea>
        <span style="font-size: 11px;"><?php echo $text_note; ?></span><br />
        <br />
        <b><?php echo $entry_rating; ?></b> <span><?php echo $entry_bad; ?></span>&nbsp;
        <input type="radio" name="rating" value="1" style="margin: 0;" />
        &nbsp;
        <input type="radio" name="rating" value="2" style="margin: 0;" />
        &nbsp;
        <input type="radio" name="rating" value="3" style="margin: 0;" />
        &nbsp;
        <input type="radio" name="rating" value="4" style="margin: 0;" />
        &nbsp;
        <input type="radio" name="rating" value="5" style="margin: 0;" />
        &nbsp; <span><?php echo $entry_good; ?></span><br />
        <br />
        <b><?php echo $entry_captcha; ?></b><br />
        <input type="text" name="captcha" value="" />
        <br />
        <img src="index.php?route=product/product/captcha" id="captcha" /></div>
      <div class="buttons">
        <table>
          <tr>
            <td align="right"><a onclick="review();" class="button"><span><?php echo $button_continue; ?></span></a></td>
          </tr>
        </table>
      </div>
    </div>
I hope this was usefull

cheers ;)

Newbie

Posts

Joined
Mon Feb 22, 2010 6:53 pm

Post by kafoso » Mon Sep 12, 2011 6:01 pm

A bit of a necro, but as this post is what people find in Google (#1 on "opencart disable review"), I feel it is important to point out, that you can just put the code below in the top of the product.tpl file, instead of removing bits of code completely:

Code: Select all

<?php
	$review_status = null;
?>
Also, now there's a checkbox in System > Settings > Your Shop > Option called "Allow Reviews".

Newbie

Posts

Joined
Wed Aug 31, 2011 3:58 am
Who is online

Users browsing this forum: No registered users and 23 guests