Jump to content

Default star rating to 5 instead of 3


Mister Denial
 Share

Recommended Posts

Hello,

 

this is as much a technical question as an ethical question: I noticed that a lot of customers simply leave the star rating on 3 stars, which is the module default, even when they use the comment feature to ask a question about the product. They simply don't bother to change the star rating, even when the comment is "amazing product, love it" and similar.

 

So my question is, would it make sense to change the default rating to 5 stars? Is that okay, or is it a no-no or even illegal practice, or is it totally fine? I don't know how other shops handle this.

 

If from a morel point of view changing the default setting is okay, how would I need to change the code to make the change?

 

Your feedback and input would be much appreciated, as always.

 

Thanks a lot! Cheers!

 

Dan

Share this post


Link to post
Share on other sites

Hello

 

Well, by having the defaut set as 3 stars is just as ethical/unethical as 5 stars.

 

As for changing the default to show 5 stars then I think you will fing it in the relevant .tpl file.

I remember asking a question similar to the. Long while ago and the solution worked..

I will be able to tell you exacly where to adjust the file when I am in front of a PC rather than a mobile.

 

Paul

Share this post


Link to post
Share on other sites

Hi Paul,

 

thanks for your reply and for your thoughts on my moral dilemma. I am not really fond of the 3-star default either, I assumed that they set it to 3 as that would be "neutral", neither happy or unhappy, but in reality, when you think of Amazon & co, 3 stars is already a rather crappy rating. In my opinion it would be better if the default was zero and that the customer has to chose a rating before submitting any comment. But as long as that's not possible, 5 stars would be better than 3.

 

I checked the tpl files, but couldn't find where to make the changes. But then again, I am more a merchant than a tech guy, so...

 

PS: nice site, it looks very stylish and sophisticated, the aesthetics and graphics look elegant and classy.

Share this post


Link to post
Share on other sites

Instead of showing any star rating, why not show something else like ... "not enough reviews to show a rating" or something to that effect?  If a product does not have any ratings, Amazon states that instead of showing a fake rating

Share this post


Link to post
Share on other sites

Hi Bellini,

 

I think I explained myself wrong: I don't want to show "x stars" rating when there actually is no rating on the product. So we're not talking about fake reviews or ratings here.

 

It is on the comment form, when a customer decides to leave a comment, by default 3 stars is selected. I would prefer that no stars are selected and that the customer has to chose between 1-5 stars, rather than leaving it on default.

 

And if that is not possible, I would prefer 5 stars to be the default rather than 3.

 

But best would be no stars selected, and make chosing the number of stars mandatory.

Share this post


Link to post
Share on other sites

Hello again

 

I agree with you and Belini, it is always better to have no "stars" showing or tell your customers that no reviews have been made.

 

It will be possible to ode either option but I am afraid I am not lever enough

 

Anyway, I have found the post I made around 18 months ago to have "5 stars" as the default setting

 

It was for PS 1.5 but looking at PS 1.6 the code looks the same, the link is below:

 

https://www.prestashop.com/forums/topic/292770-product-comments-default-as-5-stars-instead/

 

Hope this helps

 

Paul

  • Like 1

Share this post


Link to post
Share on other sites

Hi Paul,

 

thanks for the info, that did work! Thanks a lot! :-)

 

I personally also think it would be better to have no stars selected by default, and the customer then has to pick a rating before submitting the review / comment, that would be the most honest and neutral approach. I think I will suggest that in the improvements section in Forge.

 

Thanks everyone!

 

Dan

Share this post


Link to post
Share on other sites

Hello again Dan

 

Why not ask the question on the forum, maybe a Developer or Mod could write a tutorial for us.

 

Paul

 

Hi Paul,

 

do you want to move this thread to the correct forum then, or would a new post be better? (and which forum would you suggest)

 

Cheers,

 

Dan

Share this post


Link to post
Share on other sites

Hello Dan

 

I think a new Topic would be best, try the "Ecommerce and PrestaShop" forum.

 

Perhaps, I think, a lot of members would be interested in a solution to this.

 

Paul

Share this post


Link to post
Share on other sites

  • 4 years later...

The right way to do it in Prestashop 1.7 is:

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

There you'll find the next code

<div class="col-md-2 col-sm-2">
              {if $criterions|@count > 0}
                <ul id="criterions_list" class="media-list">
                  {foreach from=$criterions item='criterion'}
                    <li>
                      <div class="criterion-rating flex-container align-items-center">
                        <label>{$criterion.name|escape:'html':'UTF-8'}:</label>
                        <div
                          class="grade-stars pk-loader"
                          data-grade="3"
                          data-input="criterion[{$criterion.id_product_comment_criterion}]">
                        </div>

As you can see, the "data-grade" is set to 3 so all you'll have to do is replace data-grade="3" with data-grade="5". If that's easier, just replace with this

<div class="col-md-2 col-sm-2">
              {if $criterions|@count > 0}
                <ul id="criterions_list" class="media-list">
                  {foreach from=$criterions item='criterion'}
                    <li>
                      <div class="criterion-rating flex-container align-items-center">
                        <label>{$criterion.name|escape:'html':'UTF-8'}:</label>
                        <div
                          class="grade-stars pk-loader"
                          data-grade="5"
                          data-input="criterion[{$criterion.id_product_comment_criterion}]">
                        </div>

Enjoy!

Share this post


Link to post
Share on other sites

  • 11 months later...
  • 4 months later...
On 4/15/2021 at 10:03 AM, aiste.rutkauskaite said:

Hi, 

I changed  code like Dawg showed and it is very strange that firstly it shows five stars but if you close modal and open again it shows again three :/. Maybe somebody had the same problem? :)

https://prnt.sc/11fi9bl

https://prnt.sc/11fi7a9

Hi, I have exactly the same problem

If I close modal and open again it shows again three
Clearing the cache didn't help
Have you found a solution?

Thanks

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More