For the complete documentation index, see llms.txt. This page is also available as Markdown.

Show rating stars in filter sidebar

Turn your review app's product rating into a star-rating filter option, so shoppers can narrow results down to highly-rated products.

What this does

Review apps write each product's average rating to a product metafield — this page turns that metafield into a filter option displayed as star ratings, so shoppers can filter down to (for example) 4 stars and up, the same way they'd filter by Color or Price.

Prerequisites

  • A supported review app installed and already collecting ratings on your products.

  • That review app's integration turned on in Settings > Integration — this is what makes its rating metafield available to the filter, not just displayed on the storefront.

Steps

  1. In the app, go to Filters and open the filter you want to add ratings to (or create one).

  2. Click Add filter option (or edit an existing one).

  3. In Source, search for your review app's rating metafield — the exact path depends on which review app you use (for example, Stamped's is product:metafield:stamped:reviews_average); check your review app's own metafield documentation if you're not sure which one to pick.

  4. Set a Label (e.g. "Rating") and set Display type to Rating.

  5. Click Save.

Rating filter option — Source set to a review app's metafield, Display type set to Rating

If the option doesn't pick up any values, re-check that your review app is writing ratings to the product metafield the app reads, then run Sync Product Data.

Last updated

Was this helpful?