ListingAverageReviewsWidget
This widget displays the average rating for a product using a 5-star system, along with the total number of reviews.
Widget example
Code
Liquid
<div
class="gw-rv-listing-average-placeholder"
data-gw-product-id="{{ product.id }}"
data-gw-show-reviews-tooltip="false"
data-gw-hide-if-no-reviews="false"
style="display: block"
></div>
Attributes
Attributes
data-gw-product-idrequired- Specifies the unique identifier for the product whose average reviews will be displayed.
data-gw-show-reviews-tooltip?optional- If set to "true", enables a tooltip with detailed rating information when hovering over the widget. If omitted or set to "false", the tooltip will not be shown. Default is false.
data-gw-hide-if-no-reviews?optional- Controls the widget visibility when the product has no reviews. If set to "true", the widget will be hidden when there are no reviews. If omitted or set to "false", the widget will always be displayed. Default is false.