π‘
We do not provide support for code customizations
If you are not comfortable making code changes, we highly recommend hiring an expert developer.
Summary
Our Shopify themes use a standardized metafield to display ratings and reviews. Unfortunately not all Shopify review apps use this same metafield. If you want full integration to display correct review widgets throughout your theme you will have to make a few code edits.
How to
π‘ Tip: Duplicate your theme before making code changes. This will ensure you have a backup to revert to if needed.
Identify the metafields used by your review app - you may have to look through app documentation or contact support.
Open up
component__rating.liquid
- this file is used to display all rating and star badges in our themes.Update lines 29-31 to point to your app metafields. After making changes it should look something like this.
If you can't find a metafield for your app that points to the max value of a rating then you can manually set this. E.g. for example if your rating system goes from 0-5 you would set max to 5.
{% assign rating = product.metafields.loox.avg_rating | times: 1 %}
{% assign rating_count = product.metafields.loox.num_reviews %}
{% assign max = 5 %}