Jump to content

Product comments default as 5 stars instead?


Recommended Posts

If customers gives product comment but did not rate with the stars, the review gets 3 stars out of 5 by default. This isn't great because customer left a good review and we still get 5 stars.

 

Which part of the productcomment module should we edit so that the default star rating for each Criterion is 5 stars?

  • Like 1
Link to comment
Share on other sites

Good morning

 

Using PS 1.5.5 default theme

 

I assume you are trying to make the default "star" rating = 5 stars, if so go to:

 

public_html/your store/your theme/modules/productcomments/productcomments.tpl

 

and find:

 

{if $criterions|@count > 0}
<ul id="criterions_list">
{foreach from=$criterions item='criterion'}
<li>
<label>{$criterion.name|escape:'html':'UTF-8'}:</label>
<div class="star_content">
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="1" />
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="2" />
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="3" checked="checked" />
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="4" />
<input class="star" type="radio" name="criterion[{$criterion.id_product_comment_criterion|round}]" value="5" />
</div>
<div class="clearfix"></div>
</li>
{/foreach}
</ul>
{/if}
 
Move the checked="checked to the value="5" line
 
Result
 
Hope this helps
 
Paul
 
ps. It would be a good idea to copy/paste file to an editor first (just in case)
Edited by Paulito (see edit history)
  • Like 5
Link to comment
Share on other sites

  • 1 year later...
  • 3 months later...
  • 2 months later...
×
×
  • Create New...