Jump to content

Product Comments - change star rating


Recommended Posts

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

<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

  • 9 months later...
  • 4 months later...

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

  • 6 years later...
  • 3 weeks later...
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...