Jump to content

Change comment review from 3 stars to 5 stars for default


Recommended Posts

I updated my product comments rating stars default from 3 to 5 using this advice here and this file.

/your site/themes/your theme/modules/productcomments/views/templates/hook/post-comment-modal.tpl

I followed these instructions and i too have the issue when you click a second time to open the review window it defaults back to 3. Any solutions?

 

 

Link to comment
Share on other sites

  • 1 year later...
10 hours ago, TamasFelix said:

I am running 8.1.4, and none of the file paths for a product-comments.tpl or similar file seems to exist that are described in posts regarding earlier versions ?  Does anyone know where to change the default stars in version 8.1.4?

 

Link to comment
Share on other sites

  • 1 year later...

For everybody seeking for a solution: 

1) The above mentioned will result in a standard 5 star rating after opening the comment section for the first time. As you close it and open it again, it falls back zu 3 stars by default. 

2) Change the code as mentioned above this post and additionally: Go to /modules/productcomments/views/js/post-comment.js and search for: 

$('#post-product-comment-form .criterion-rating input').val(3).trigger('change');

and change it to

$('#post-product-comment-form .criterion-rating input').val(5).trigger('change');

 

I am using Prestahop 9.0.1. Hope this helps.

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...