TrustShop Help Center

Add Star rating on Collection page

P Written by Philip Nguyen
Updated 5 hours ago

Collections help customers browse the product categories that they’re interested in without having to look through multiple pages of products.

In this article, we'll show you how to install Star Ratings on your collections, including collection pages and homepage.

Install using Shopify theme editor

This method works only with Shopify Horizon themes or themes that allow app blocks to be added to product cards on collection pages. If your theme does not support this feature, please follow the manual installation instructions below.Step to install
  1. Open the Theme Editor and navigate to the section where you want to display ratings, such as a collection page, featured collection, featured products section, or other product listing sections.
  2. Select the product card block where you want the rating to appear. Click Add block and choose TrustShop Star Rating. A Star Rating app block will be added, initially showing a rating value of 0.
  3. In the Star Rating block settings, locate the Product List (Optional) field. Click the Dynamic Source icon and select Product. This allows the app block to automatically use data from the current product displayed in the product card.
  4. Wait for the theme preview to refresh. The Star Rating block will then display the rating and review count for each product.
  5. Click Save to publish your changes.

Install using liquid code

For themes that don't support adding app blocks to collection product cards, such as Dawn, Vintage themes, or other older themes.Star Ratings installed via code will show on both your collection pages and the collection on your homepage. It also allows you to change the position of the ratings.

Step 1: Enable TrustShop app embed

  1. From your Shopify admin, go to Online Store > Themes.
  2. Find the theme you want and click Customize.
  3. Go to App embeds and enable TrustShop
  4. Click Save.

Step 2: Add the Star Ratings code

  1. Once you've enabled TrustShop app embed, go back to Online Store > Themes.
  2. Click "..." > Edit code.
  3. Then depending on your theme, the next steps might differ.
Theme: Athens, Be Yours, Chord, Colorblock, Craft, Crave, Dawn, Eurus, Launch, Origin, Publisher, Ride, Refresh, Sense, Spotlight, Studio, Taste, Viola

Installation steps
• Open card-product.liquid.
• Above the line that contains {%- if show_rating), add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Marble, Sahara

Installation steps
• Open card-product.liquid.
• Under the line that contains <!-- /.card-product__title, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Maranello, Mono

Installation steps
• Open card-product.liquid.
• Under the line that contains </h3>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Blum

Installation steps
• Open card-product.liquid.
• Under the line that contains </h3>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Baselin, Creative, District, Expanse, Fetch, Impluse, Label, Motion, North, Streamline, Sydney

Installation steps
• Open product-grid-item.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Modular

Installation steps
• Open product-grid-item.liquid.
• Under the line that contains product-block__title, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Broadcast

Installation steps
• Open product-grid-item.liquid.
• Under the line that contains product-item__title, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Pipeline

Installation steps
• Open snippets/product-grid-item.liquid.
• Above the line that contains if settings.product_grid_show_rating, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Story

Installation steps
• Open product-grid-item.liquid.
• Above the line that contains <p>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click ** Save**.
Theme: Empire

Installation steps
• Open product-grid-item.liquid.
• Under the line that contains </h2>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Palo Alto

Installation steps
• Open product-grid-item.liquid.
• Above the line that contains {%- if settings.show_rating, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Venue

Installation steps
• Open product-grid-item.liquid.
• Under the line that contains product-card__title, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Automation

Installation steps
• Open product-grid-item.liquid.
• Above the line that contains {%- if settings.enable_product_reviews -%}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Wokiee

Installation steps
• Open product-grid-item-design-1.liquid.
• Under the line that contains </h2>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Champion, Upscale

Installation steps
• Open product-card.liquid.
• Above the line that contains {%- if settings.product_card_show_product_rating, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Atom

Installation steps
• Open product-card.liquid.
• Above the line that contains {% if section.settings.show_rating, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Habitat, Reformation, Tailor, Vision

Installation steps
• Open product-card.liquid.
• Under the line that contains {{ product_card_product.title }}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Portland, Stockmart

Installation steps
• Open product-card.liquid.
• Above the line that contains {% render 'price', add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Symmetry

Installation steps
• Open product-block.liquid.
• Under the line that contains class="product-block__title" , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Aurora

Installation steps
• Open product-card.liquid.
• Under the line that contains {%- if enable_product_review -%}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Galleria

Installation steps
• Open product-card.liquid.
• Above the line that contains <div>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Whisk

Installation steps
• Open product-card.liquid.
• Above the line that contains {%- if show_price -%}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Mojave

Installation steps
• Open product-card.liquid.
• Above the line that contains <divtrustshop-collection-rating--item"
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Alchemy, Avatar, Berlin, Frame, Handmade, Honey, Tailor, ShowTime, Stockholm, Zest

Installation steps
• Open product-card.liquid.
• Under the line that contains </h3>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click ** Save**.
Theme: Taiga

Installation steps
• Open product-card.liquid.
• Under the line that contains <h2>{{ product.title }}</h2>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Emporium

Installation steps
• Open product-card.liquid.
• Under the line that contains </h5>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Minimog

Installation steps
• Open product-card.liquid.
• Under the line that contains {% if settings.show_review_badge %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Influence

Installation steps
• Open ship-product-card.liquid.
• Above the line that contains {% if block_name == 'price' %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Sunrise

Installation steps
• Open ship-product-card.liquid.
• Above the line that contains {% render 'product-price', product: product_card_product %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ `card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Canopy

Installation steps
• Open product-block.liquid.
• Above the line that contains <divtrustshop-collection-rating--item"
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Masonry

Installation steps
• Open product-block.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Prestige, Xtra

Installation steps
• Open product-item.liquid.
• Above the line that contains {%- if settings.show_product_rating -%}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Focal, Ira, Lorenza, Split, Warehouse

Installation steps
• Open product-item.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Stiletto

Installation steps
• Open product-item.liquid.
• Above the line that contains {% if settings.product_listing_show_vendor and prod.vendor %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Local Combine

Installation steps
• Open product-item.liquid.
• Above the line that contains {%- when 'rating' -%}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Capital

Installation steps
• Open product-item.liquid.
• Above the line that contains <div>, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Highlight, Kingdom

Installation steps
• Open product-item.liquid.
• Above the line that contains product-item__price, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Spark

Installation steps
• Open product-item.liquid.
• Under the line that contains </h4>, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Atlantic

Installation steps
• Open product-item.liquid.
• Under the line that contains </h2>, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Electro

Installation steps
• Open product-item.liquid.
• Above the line that contains {% include 'product-grid-review' %}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Tema Aurora, Tema Warehouse

Installation steps
• Open product-item.liquid.
• Above the line that contains {%- if settings.show_reviews_badge -%}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Paper

Installation steps
• Open component__product-item.liquid.
• Under the line that contains </h3>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Editions

Installation steps
• Open small-product-item.liquid.
• Under the line that contains </h3>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Yuva

Installation steps
• Open product-grid.liquid.
• Under the line that contains yv-product-title, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Cascade

Installation steps
• Open product-tile.liquid.
• Above the line that contains&#32;{% if settings.product_tile_star_ratings, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Shapes

Installation steps
• Open product-tile.liquid.
• Under the line that contains {{ product.title | escape }} , add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Context

Installation steps
• Open product-tile.liquid.
• Under the line that contains </h2> , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Fashionopolism, Icon, Mr Parker, Testament, Vantage

Installation steps
• Open product-listing.liquid.
• Above the line that contains {% render 'product-price-listing', product: product %}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Envy, Fresh

Installation steps
• Open product-grid--indiv-product.liquid.
• Under the line that contains {{ liquidObject.title }} , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Pursuit

Installation steps
• Open product-card-item.liquid.
• Under the line that contains {{ product.title }} , add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Mavon

Installation steps
• Open product-card-item.liquid.
• Above the line that contains {%- if show_price -%} , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Avenue

Installation steps
• Open product-loop.liquid.
• Under the line that contains <div> , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Drop, Foodie, Forge

Installation steps
• Open product-loop.liquid.
• Above the line that contains {%- if settings.show_rating , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Bullet

Installation steps
• Open global-product-card.liquid.
• Under the line that contains {{ product.title }} , add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Parallax, Responsive, Retina

Installation steps
• Open product-thumbnail.liquid.
• Above the line that contains {% if settings.display_vendor_collection %} , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Fame

Installation steps
• Open product-info.liquid.
• Above the line that contains <div> , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Turbo, Turbo-portland

Installation steps
• Open product-info.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Grid, Pacific

Installation steps
• Open product-list-item.liquid.
• Under the line that contains {{ item.title }}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Startup

Installation steps
• Open product-list-item.liquid.
• Above the line that contains <p> , add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Align

Installation steps
• Open component-card-product.liquid.
• Above the line that contains {%- unless show_footer == false -%}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Modules

Installation steps
• Open productRender.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Bazaar

Installation steps
• Open product-card-minimal.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Roam

Installation steps
• Open product.loop.liquid.
• Under the line that contains {% if show_vendors %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: California, Colors

Installation steps
• Open collection-product.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Andaman

Installation steps
• Open block.liquid.
• Above the line that contains <div>, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Providence

Installation steps
• Open product.liquid.
• Above the line that contains {% if show_vendor %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Loft

Installation steps
• Open product-loop-item.liquid.
• Above the line that contains {%- if show_reviews -%}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Debut

Installation steps
• Open product-card-grid.liquid.
• Under the line that contains {{ product.title }}, add the following code:

``<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Health & Beauty

Installation steps
• Open product-card-info.liquid.
• Above the line that contains {% if settings.show_review_badge %}, add the following code:

``<div
rating-value="{{ card_product.metafields.reviews.rating.value }}"
rating-count="{{ card_product.metafields.reviews.rating_count }}" >

`` • Click **Save**.
Theme: Charge

Installation steps
• Open grid-item-product.liquid.
• Under the line that contains <p>{{ product.title | default: 'Example product title' }}</p>, add the following code:

<div
rating-value="{{ product.metafields.reviews.rating.value }}"
rating-count="{{ product.metafields.reviews.rating_count }}" >
/div>
• Click Save.

Updated on: 16/06/2026

Did this answer your question?

Related articles

Not finding what you are looking for?Our support team is happy to help.
Send us an email