Displaying review ratings on the collection page helps customers quickly evaluate products without needing to open each product individually. By showcasing star ratings alongside product listings, you can enhance visibility of customer feedback, build trust, and make it easier for shoppers to compare items at a glance. This feature improves the browsing experience and can help drive more informed purchasing decisions.
The updated rating block shows the star rating, the average rating and the number of reviews on each product card. When a shopper hovers over the review count, a dropdown opens with the rating breakdown (5 to 1 stars) and a See all customer reviews link to the product page. Its styling now comes from a separate stylesheet, reviewRating-min.css, which you add to your theme in this article.
Note: The steps below apply only to the Shopify Horizon or Dawn theme. If you want to set this up on other themes, please contact our support team at support@aitrillion.com.Ratings appear on the collection page only while the
Product reviews module is enabled. If the module is turned off, the rating
block hides itself automatically.
Step 1: In the
AiTrillion admin panel, go to Product reviews >> Dashboard in the
left-hand menu.
Step 2: At the top
right of the Product review dashboard, turn on the Enable toggle. When
the toggle is blue, the Product Reviews module is active on your store.
Note: This code replaces the earlier version of review-rating-V2.liquid. If you set this up before, replace the whole content of the file with the code above.
Add the reviewRating-min.css stylesheet
Step 4: In the
code editor, click the assets folder, then click the add file icon and
name the new file reviewRating-min.css.
Step 5: Copy the
CSS below, paste it into reviewRating-min.css, and click on the Save
button.
.star-container
{display: inline-flex;align-items: center;gap: 8px;}.star-container,
.aio-review-ratings, .ai-review-stars, .ai-review-stars span {font-size:
14px;height: auto;line-height: 1;}.product-review-star-container {width:
100%;position:relative;z-index: 2;}.aio-review-ratings {display:
inline-flex;flex-wrap: wrap;align-items: center;width: auto;cursor:
pointer;}.aio-review-ratings .aio-reviews-text-only {margin-left:
2px;}.ai-review-stars {display: flex;flex-wrap: nowrap;margin: auto -1px;}.ai-review-stars
span {padding: 0px 1px;}.ai-review-stars svg {width: 15px;height:
auto;}.product-review-star-container .ai-review-stars
.aio_egg_star-ratings-css-top {padding: 0;position: absolute;z-index:
1;white-space: nowrap;display: inline-flex;top: 0;left: 0;overflow:
hidden;cursor: default;gap:1px;}.product-review-star-container .ai-review-stars
.aio_egg_star-ratings-css-bottom{position: relative;padding: 0;display:
inline-flex;gap:1px;z-index: 0;}.product-review-star-container .ai-review-stars
.aio_egg_star-ratings-css-top svg, .product-review-star-container
.ai-review-stars .aio_egg_star-ratings-css-bottom svg{width: 15px;flex:0 0
15px;height: auto;}.product-review-star-container .ai-review-stars
.aio_egg_star-ratings-css-top, .product-review-star-container .ai-review-stars
.aio_egg_star-ratings-css-bottom, .product-review-star-container
.ai-review-stars .aio_egg_star-ratings-css{height: 15px;line-height:
15px;font-size: 15px;}.product-review-star-container .ai-review-stars
.aio_egg_star-ratings-css{position: relative;}.aio-review-ratings .no_reviews
{margin-left: 5px;}.ai-review-stars-text {margin-right: 2px;margin-left:
5px;}.fa_star_half_full svg path.nofill {fill: #e0e0e0;}.fa_star.no svg path
{fill: #e0e0e0;}.fa_star_o svg path {fill: #e0e0e0;}.aio-review-ratings
.ai-review-stars-count {display: none;}.aio-review-ratings:hover
.ai-review-stars-count {display: inline-flex;}.product-review-star-container
.aio-rr-dropdown {position: relative;display: inline-flex;min-height:
25px;align-items: flex-start;flex-wrap: wrap;}.product-review-star-container
.aio-rr-dropdown-toggle {display: inline-flex;align-items: center;gap:
4px;border: 0;background: transparent;box-shadow: none;padding: 0;margin:
0;width: auto;min-width: 0;min-height: 0;height: auto;font: inherit;cursor:
pointer;letter-spacing: inherit;text-transform: none;color:
var(--aio-review-text-color, #232e41);}.product-review-star-container
.aio-rr-rating-value {color: var(--aio-review-text-color,
#232e41);}.product-review-star-container .aio-rr-dropdown {gap:5px
}.product-review-star-container .aio-rr-dropdown-toggle .ai-review-stars-text
{margin-left: 0px;margin-right: 0;}.product-review-star-container
.aio-rr-dropdown-toggle .caret {width: 9px;height: auto;flex: 0 0
9px;transition: transform 0.2s linear;}.product-review-star-container
.aio-rr-dropdown .aio-rr-dropdown-menu {position: absolute;top: 100%;left:
0;right: auto;margin: 0px 0px;width: 320px;max-width: 90vw;padding:
16px;background: #fff;border: 1px solid #eceff7;box-shadow: 0 4px 8px rgba(0, 0,
0, 0.08);border-radius: 12px;z-index: 10;opacity: 0;visibility: hidden;cursor:
default;text-align: left;}.product-review-star-container .aio-rr-dropdown:hover
.aio-rr-dropdown-menu {opacity: 1;visibility:
visible;}.aio-rr-dropdown-menu::before {content: "";display:
block;width: 12px;height: 12px;position: absolute;background-color: #fff;right:
50%;top: 0;border: 1px solid #ebebf0;z-index: 1;-webkit-transform:
translate(50%, -50%) rotate(45deg);transform: translate(50%, -50%)
rotate(45deg);}.aio-rr-dropdown-menu:after {content: "";display:
block;width: 25px;height: 12px;position: absolute;background-color: #fff;right:
50%;top: 6px;z-index: 1;-webkit-transform: translate(50%, -50%);transform:
translate(50%, -50%);}.product-review-star-container .aio-rr-dropdown
.aio-rr-based-on {margin-bottom: 10px;color: var(--aio-review-text-color,
#232e41);font-size: 15px;}.product-review-star-container .aio-rr-dropdown
.aio-rr-based-on strong {font-weight: 700;}.product-review-star-container
.aio-rr-dropdown .aio-rr-see-all {display: flex;align-items:
center;justify-content: center;gap: 6px;margin-top: 12px;padding-top:
12px;border-top: 1px solid #eceff7;font: inherit;font-size: 14px;line-height:
1.2;text-align: center;text-decoration: none;color: var(--aio-review-text-color,
#232e41);cursor: pointer;}.product-review-star-container .aio-rr-dropdown
.aio-rr-see-all:hover {text-decoration: underline;opacity:
0.75;}.product-review-star-container .aio-rr-dropdown .aio-rr-see-all svg
{flex: 0 0 auto;width: 5px;height: auto;}.product-review-star-container
.aio-rr-dropdown .rating_progress {display: flex;align-items: center;width:
100%;margin-bottom: 6px;line-height: 1.2;}.product-review-star-container
.aio-rr-dropdown .rating_progress:last-of-type {margin-bottom:
0;}.product-review-star-container .aio-rr-dropdown .rating_progress label
{font: inherit;font-size: 15px !important;white-space: nowrap;margin: 0;cursor:
default;color: var(--aio-review-text-color,
#232e41);}.product-review-star-container .aio-rr-dropdown .rating_progress .progress
{position: relative;flex: 1 1 auto;margin: 0 8px;height: 8px;background:
#f2f2f5;border-radius: 12px;overflow: hidden;}.product-review-star-container
.aio-rr-dropdown .rating_progress .progress progress {visibility:
hidden;position: absolute;}.product-review-star-container .aio-rr-dropdown
.rating_progress output {position: absolute;top: 0;bottom: 0;left: 0;display:
block;box-sizing: border-box;background: #ffd700;border-radius: 12px;z-index:
2;}.product-review-star-container .aio-rr-dropdown .show_strval {font:
inherit;font-size: 14px;white-space: nowrap;color: var(--aio-review-text-color,
#232e41);}@media (max-width: 749px) {.product-review-star-container
.aio-rr-dropdown .aio-rr-based-on{font-size:14px
}.product-review-star-container .aio-rr-dropdown .rating_progress
{margin-bottom:6px !important;}.product-review-star-container .aio-rr-dropdown
.aio-rr-see-all{font-size:13px }.product-review-star-container .aio-rr-dropdown
.rating_progress label, .product-review-star-container .aio-rr-dropdown .show_strval{font-size:13px
!important;}.product-review-star-container .aio-rr-dropdown .rating_progress
.progress{height:6px }.grid--2-col-tablet-down .grid__item
.product-review-star-container .aio-rr-dropdown
.aio-rr-dropdown-menu{padding:12px 10px !important;}}@media (max-width: 600px)
{.product-review-star-container .aio-rr-dropdown .aio-rr-dropdown-menu {width:
280px;max-width:100% }}

Step 6: Open card-product.liquid
under Snippets. At the top of the file, find the existing CSS
lines (the lines ending in stylesheet_tag), paste the code below just
below the last existing CSS line, and click on Save.
{{
'reviewRating-min.css' | asset_url | stylesheet_tag }
Note: Paste the line below any existing CSS, never above it, so that the review styles load after the theme’s own styles. If card-product.liquid has no stylesheet lines at the top, paste it on the first line of the file (after the opening {% comment %} … {% endcomment %} block, if there is one).
Note: The file name must match exactly, including the capital R: reviewRating-min.css. If the name in the Assets folder is different, the stars and the rating dropdown will appear unstyled.
Step 7:** Copy the shortcode below:
{% render 'review-rating-V2', product: card_product %}
{% render 'review-rating-V2', product: card_product %}
Note: Horizon does not have a card-product.liquid file. On Horizon, paste the stylesheet line from Step 6 at the top of product-title.liquid instead, above the shortcode.
Hover over the review count to open the rating breakdown.
Now, the "No reviews" text will no longer appear on the collection page.
product-title.liquid) to avoid display issues.