Pressed0024 Posted November 30, 2013 Share Posted November 30, 2013 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? 1 Link to comment Share on other sites More sharing options...
Paulito Posted November 30, 2013 Share Posted November 30, 2013 (edited) 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 http://screencast.com/t/mtv0XVbetcEv Hope this helps Paul ps. It would be a good idea to copy/paste file to an editor first (just in case) Edited November 30, 2013 by Paulito (see edit history) 5 Link to comment Share on other sites More sharing options...
Pressed0024 Posted December 1, 2013 Author Share Posted December 1, 2013 Great tip there! Thanks! Link to comment Share on other sites More sharing options...
damiagusa Posted November 12, 2015 Share Posted November 12, 2015 Works perfect for me. Tkanks!! 1 Link to comment Share on other sites More sharing options...
Austra02 Posted February 26, 2016 Share Posted February 26, 2016 Excellent! Works perfectly. Great tip; thanks. 1 Link to comment Share on other sites More sharing options...
bedandw Posted May 10, 2016 Share Posted May 10, 2016 Thanks indeed, reallly helpful! Link to comment Share on other sites More sharing options...
Recommended Posts