Changing Comment’s Rating in PrestaShop

Apr 30, 2014134
Changing Comment’s Rating in PrestaShop

When we were developing our own SEO-module, we faced a problem. Google Rich Snippets always shows that comment’s rating equals two. The thing is that templates /themes/default-bootstrap/modules/productcomments/productcomments-extra.tpl and /themes/default-bootstrap/modules/productcomments/productcomments_reviews.tpl have static parameter for ratingValue

Partner With Us Let's discuss how to grow your business. Get a Free Quote.
Talk to Andrey

To solve that problem you have to change that line in those two templates for the following: <meta itemprop=”ratingValue” content = “{$averageTotal}” />

Partner With Us Looking for a partner that will help you to grow your business? We are the right company to develop your webstore. Feel free to get in touch with us. We will be happy to discuss your business opportunities and provide you with a Free Quote. Talk to Andrey


  1. But if we make this change, it will display the actual value of the notation. Off if there has not yet been scoring one must give it a value = 2?
    Where then I did not understand the purpose of this code…

Post a new comment

BelVG Newsletter
Subscribe to our mailing list and get interesting stuff and updates to your email inbox.
Email *