Changing Comment’s Rating in PrestaShop

Apr 30, 2014116Alex Simonchik
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

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


  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 *