Star rating
Show an existing product rating using Shopify’s standard rating fields.
Spread is in development. These early guides grow as the theme does.
The Star rating block shows five stars, an optional score and an optional rating count. It needs a compatible app that writes Shopify’s standard product rating fields.
Connect product ratings
Check with your rating app that it fills these product metafields:
| Namespace and key | Type | Content |
|---|---|---|
reviews.rating | Rating | The average score and its scale minimum and maximum |
reviews.rating_count | Integer | The number of ratings |
The block reads those fields directly. An app that displays its own widget may not fill them. A product can have no rating values even when the app is already set up. Missing values on one product do not tell the theme whether the store has a compatible app.
Add to a product section
- In the theme editor, open a product template or a Featured product section.
- Select Add block, then Star rating.
- Move it where you want it, for example below the title and before the price.
- Save your changes.
You can add one Star rating block per product section. Quick view uses the product template’s block and settings.
Add to product cards
- In the theme editor, open a collection template, search template, Featured collection, Tabbed collections or Product recommendations section.
- Open Product card and choose Add block > Star rating.
- Move the block between the other card parts.
- Save your changes.
The layout repeats across that section’s cards, with each product’s own rating. Adding the block in one section does not add it elsewhere. Existing card layouts stay as they are until you add it. Compact search and complementary-product rows keep their own layouts.
Choose what appears
| Setting | What it does | Default |
|---|---|---|
| Show numeric rating | Shows the score beside the stars. The score remains available to screen readers when hidden. | On |
| Show rating count | Shows and announces the number of ratings when available. | On |
| Show when no ratings | Shows five empty stars and “No ratings” for an unrated product, in both the editor and storefront. No numeric score is shown. | Off |
| Star color | Changes the stars only. Clear it to use the color scheme’s text color. Choose a color with suitable contrast. | Empty |
Use Desktop spacing → Bottom and Mobile spacing → Bottom independently; zero removes that spacing. Card ratings start at 8px in both views; product-section ratings start at 24px. Hide or remove the block using the editor’s usual controls.
Good to know
- The block displays existing ratings. It does not collect them or link to a review widget.
- A missing count is omitted. A count of zero means the product is unrated. Invalid or inconsistent data hides the summary. Unrated products do not show a setup notice; use the setup requirements in the block’s settings.
- Fractional scores fill the stars continuously. Other scales keep their original score and maximum in the text.
- Ratings belong to the product and stay the same when customers choose another variant.
- Editor preview examples never appear on the storefront.
Card settings are independent from the product section’s Star rating settings. Choosing a card swatch leaves the product’s aggregate rating unchanged.
