Karimova Posted November 14, 2016 Share Posted November 14, 2016 Hello, I have this module 'Product Comments' installed. Be default, when you give a rating it's showing 3 star unless you scroll and change it to 5. I'd like to change it and provide 5 stars by default. Do you know how to do it? Best regards, Link to comment Share on other sites More sharing options...
TiaNex Shopping Posted November 15, 2016 Share Posted November 15, 2016 <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> modify the checked value in productcomments.tpl file (maybe other file) what's the problem of my store,,,, Link to comment Share on other sites More sharing options...
Lina88 Posted September 9, 2017 Share Posted September 9, 2017 On my shop the default star rating always shows as 4 stars, although value 5 is checked. Can anyone help me? Do I have to change another file in adition to the productcomments.tpl ? Would be great if anyone had an idea! Best regards Link to comment Share on other sites More sharing options...
Suroiu Posted January 21, 2018 Share Posted January 21, 2018 For Lina88, if until now you don't figure out how to resolve the problem with those 4 stars even if value is checked to 5 i have the solution, Is easy, after you edit "public_html/your store/your theme/modules/productcomments/productcomments.tpl" and set checked to 5, go to "public_html/modules/productcomments/productcomments.tpl" and change the file there too. Link to comment Share on other sites More sharing options...
lapampek000 Posted April 13 Share Posted April 13 Does anyone know how to solve this problem in prestashop 8.0? Thank you in advance Link to comment Share on other sites More sharing options...
TecMikro Posted April 30 Share Posted April 30 On 4/13/2024 at 3:20 AM, lapampek000 said: Does anyone know how to solve this problem in prestashop 8.0? Thank you in advance Tengo Prestashop 1.7.8.9 y el módulo productcomments 5.0.3, en el archivo /modules/productcomments/views/templates/hook/post-comment-modal.tpl en la línea 78 cambiar data-grade="3" por data-grade="5". Tal vez te puede servir para Prestashop 8.0. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now