Skip to main content

ReviewsListHeaderWidget

Displays the product's aggregated rating summary and prompts users to engage by submitting reviews or questions. Acts as the header section for review lists.

Widget Example​

List Header Widget

Code​

Liquid
<div
class="gw-rv-reviews-list-header-widget-placeholder"
data-gw-product-id="{{ product.id }}"
data-gw-add-review-button-enabled="true"
data-gw-add-question-button-enabled="true"
style="display: block;"
></div>

Attributes​

Attributes
data-gw-product-idrequired
Specifies the unique identifier for the product whose reviews will be displayed.
data-gw-add-review-button-enabled?optional
Toggles visibility of the "Write a review" button. Default: false.
data-gw-add-question-button-enabled?optional
Toggles visibility of the "Ask a question" button. Default: false.