Originally posted by Bruce - PhosphorMedia
View Post
What's weird is it hasn't been an issue using <mvt:if expr="l.settings:pm_easy_review:avgcount">.
I've been using it for a while now and if there are no reviews (returned 0), the json code within <mvt:if expr="l.settings:pm_easy_review:avgcount"> does not get rendered.
Empty review or aggregateRating fields will definitely cause errors with Google.
It's best practice to leave them out entirely if there are no reviews.
If you think using <mvt:if expr="l.settings:pm_easy_review:avgcount GE 1"> would be more reliable though then I will change it.
Thanks for pointing that out Bruce.
Leave a comment: