Get Free Audit

Changing Comment’s Rating in PrestaShop

Apr 30, 2014

391 Alex 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

Andrey_Dubina
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}” />

Andrey Dubina
Partner With Us Looking for a partner to grow your business? We are the right company to bring your webstore to success. Talk to Andrey

2 Comments

  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 *