{%- comment -%} MIT License · (c) 2026 Lintel · https://lintelagency.com/resources/shopify-sections {%- endcomment -%} {%- comment -%} Reviews summary: the product's average star rating and review count, read from the standard metafields a review app fills in (reviews.rating and reviews.rating_count), with a link to the reviews on the page. A review app's own block can sit inside it. Without a rating (and without an app block) it renders nothing for shoppers: it never shows sample or made-up ratings. On product templates it uses the page's product; elsewhere the product picked in the settings. No JavaScript. Depends on: nothing. {%- endcomment -%} {%- liquid assign s = section.settings assign p = s.product if p == blank assign p = product endif assign rating = p.metafields.reviews.rating.value assign count = p.metafields.reviews.rating_count.value | default: 0 assign has_rating = false if rating != blank and rating.rating != blank assign has_rating = true endif assign heading_tag = s.heading_tag | default: 'h2' -%} {%- if has_rating or section.blocks.size > 0 or request.design_mode -%}
No rating for this product yet. This section shows the reviews.rating and reviews.rating_count metafields your review app fills in, or an app block you add here. Shoppers see nothing until then.
{%- endif -%} {%- for block in section.blocks -%} {%- if block.type == '@app' -%}