How to hide Review Tabs when no reviews present in Modern Theme

Last modified by rickahontas on Thu, June 24, 2010 17:07
Source|Old Revisions  

This is an old revision of the document!

I wanted to hide my reviews tab from view on product pages lacking a product review. To do so, go into your:

app / design / frontend / (package name, usually default) / (your theme) / template / review / product /view / list.phtml

and find:

<?php if (count($_items)):?>

and comment it out and place this underneath it, like so:

<?php //if (count($_items)):?> <?php if (!empty($_items)):?>

Your tabs should be devoid of a Review Tab on all products missing a review, if all is done properly.