Skip to main content
All CollectionsTechnical guides
Integrate your reviews and rating app
Integrate your reviews and rating app
Thomas K avatar
Written by Thomas K
Updated over a week ago

πŸ’‘

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.

  1. Identify the metafields used by your review app - you may have to look through app documentation or contact support.

  2. Open up component__rating.liquid - this file is used to display all rating and star badges in our themes.

  3. 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 %}

Did this answer your question?