Post by scoop » Sat Apr 17, 2010 2:18 am

How do i go about removing or disabling "Average Rating: Not Rated" text you see on all products?

Thanks.

New member

Posts

Joined
Sun Feb 07, 2010 8:10 am

Post by MrConn » Sat Apr 17, 2010 2:51 am

If you wanna remove the rating-text alltogether you enter catalog/view/theme/YOURTHEME/template/product/product.tpl and delete the following:

Code: Select all

              <tr>
                <td><b><?php echo $text_average; ?></b></td>
                <td><?php if ($average) { ?>
                  <img src="catalog/view/theme/laptop/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>
And if you only wanna remove the text when the product isn't rated you change the code abow to this:

Code: Select all

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

Image
Nemmelig.no - Billige Gadgets!


Active Member

Posts

Joined
Tue Mar 23, 2010 8:08 am

Post by scoop » Sat Apr 17, 2010 7:43 pm

Thankyou very much!
Works like a charm.

New member

Posts

Joined
Sun Feb 07, 2010 8:10 am
Who is online

Users browsing this forum: No registered users and 14 guests