Skip to main content

ReviewsStarRatingWidget

The widget displays the average rating using a 5-star system and the number of reviews. Hovering over the stars reveals a detailed breakdown of the ratings. Users can click "See all reviews" for more detailed feedback.

Widget examples​

Default​

Default widget example

Hover​

Hovered widget example

Code​

Liquid
<div
class="gw-rv-star-rating-widget-placeholder"
data-gw-product-id="{{ product.id }}"
style="display: block"
></div>

Attributes​

Attributes
data-gw-product-idrequired
Specifies the unique identifier for the product whose average reviews will be displayed.