Reviews and Ratings
The Reviews and Ratings app is a VTEX native solution for product review and rating.
- Install the reviews-and-ratings app in the desired account;
- In the admin's account, access Apps and then select the Reviews and Ratings box;
- Once in the app's page, define the app’s configurations in the setup section:
Allow Anonymous Reviews: if unchecked, only logged-in shoppers will be able to review products.
Require Admin Approval: Checking this box activates the review moderation system. Newly submitted reviews will not be displayed on the store website until an administrator approves them in the account's admin.
Ask For Reviewer's Location: Checking this box activates an optional review field. Shoppers that submit reviews will be asked to fill in their current location (i.e. "Boston, MA").
⚠️ This app fills the standard VTEX review blocks with content using abstract interfaces from vtex.product-review-interfaces . The VTEX review blocks are:
"product-reviews": This block can be added to the product page (store.product). It renders a paginated list of reviews for the product being viewed, as well as a form for the shopper to add a new review.
"product-rating-summary": This block can be added to the product page (store.product) and renders the average rating for the product being viewed as well as the number of reviews that have been submitted. If moderation is being used by the account, only approved reviews will count toward these figures.
"product-rating-inline": Similar to the previous block, but intended to be used in product shelves. The block displays the product's average rating only.
As said previously, the app may be configured to use a review moderation interface where an administrator is responsible for approving the reviews before they are displayed on the store website.
To access and use the review moderation admin interface, follow the instruction below:
- In the account's admin, navigate to Catalog using the admin's sidebar;
- Access the Reviews section;
- You may view either Pending or Approved reviews using the tabs at the top of the page.
Individual pending reviews may be either approved or deleted using the Kebab Menu (3 dots button) in the right column or selecting the checkbox in the left. Multiple reviews can also be selected using the checkboxes, being approved or deleted in bulk.
Approved reviews may be deleted as well, either individually or in bulk.
In order to apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS Handles for store customization.