vtex-apps / reviews-and-ratings

5 stars 20 forks source link
hacktoberfest us-1st-party-apps xp-developer

📢 Use this project, contribute to it or open issues to help evolve it using Store Discussion.

All Contributors

Reviews and Ratings

Reviews & Ratings allows customers to submit reviews and ratings for products and see them while navigating the store.

reviews-and-ratings-app

Configuration

Step 1 - Installing the Reviews and Ratings app

Using your terminal, log in to the desired VTEX account and run the following command:

vtex install vtex.reviews-and-ratings@3.x

Step 2 - Defining the app settings

  1. Access the Admin, go to Apps > My Apps and then click the Reviews and Ratings card:

apps-reviews-and-ratings

  1. On the app settings page, define the following settings based on the desired scenario:

reviews-settings

Step 3 - Declaring the app blocks in your store theme

Once the app is configured, it is time to place the following blocks in your Store Theme app:

App behavior

As described above, the app may be configured to use a review moderation interface where an admin is responsible for approving the reviews before they are displayed on the store.

To access and use the review moderation admin interface, follow the instructions below:

  1. Enable the Require Admin Approval setting as described above.
  2. Open the Admin and navigate to Catalog > Reviews.
  3. You may view either Pending or Approved reviews using the tabs at the top of the page.

    You can export reviews to XLS files from the Download tab. The export is limited to 800 reviews at a time. Please use the date pickers to choose the time range of reviews you want to export.

⚠️ If you have updated to version 3.x after using a prior version of Reviews and Ratings, you may see the Migrate Data button instead of a list of reviews in the Catalog > Reviews page. Clicking this button will migrate all existing review data from the previous storage solution (VBASE) to the new solution (Masterdata V2). Once the migration is finished, the page will automatically refresh, and the list of reviews will become available.

Individual pending reviews may be approved or deleted using the kebab menu (3 dots button) in the right column or by selecting the checkbox on the left. Multiple reviews can also be selected using the checkboxes to approve or delete in bulk.

Approved reviews may be deleted as well, either individually or in bulk.

Customization

To apply CSS customizations in this and other blocks, follow the instructions given in the recipe on Using CSS handles for store customization.

CSS handles
container
formContainer
formSection
formBottomLine
formRating
formName
formLocation
formEmail
formReview
formSubmit
formInvalidMessage
graphBar
graphBarContainer
graphBarPercent
graphContent
graphContainer
graphText
graphTextLabel
loginLink
reviewComment
reviewMessage
reviewCommentRating
reviewCommentsContainer
reviewCommentUser
reviewsHeading
reviewsRating
reviewsRatingAverage
reviewsRatingCount
reviewsOrderBy
reviewsPaging
reviewInfo
reviewVerifiedPurchase
reviewDate
reviewDateSubmitted
reviewDateValue
reviewAuthor
reviewAuthorBy
reviewAuthorName
star--empty
star--filled
star
starpicker
stars
starsContainer
summaryContainer
summaryButtonContainer
writeReviewContainer
graphContent
graphContainer
graphText
graphTextLabel
graphBarContainer
graphBar
graphBarPercent
summaryButtonContainer
summaryTotalReviews
writeReviewContainer
writeReviewButton

Rest APIs

To see how to use the list of REST APIs, read Reviews and Ratings API overview.

GraphQL IDE

To see how to use the graphQL queries and mutations, follow these steps:

  1. Open the Admin GraphQL IDE app.
  2. Select thevtex.reviews-and-ratings app.
  3. Click docs in the top right corner. reviews-and-ratings-app

You will see the list of all available queries and mutations, including schemas and variable descriptions.

Contributors ✨

Thanks goes to these wonderful people:


khrizzcristian

💻

Julio Moreira

💻

Brian Talma

💻

Arturo Castillo

💻

This project follows the all-contributors specification. Contributions of any kind welcome!