08-28-2025 11:13 AM - edited 12-04-2025 01:00 PM
This article discusses how to implement Reviews on your product detail pages (PDPs). To learn more about the Review Snippet, Review Display, and their related features, click here. To learn more about validating your Review Snippet and Review Display implementation, click here.
The Review components include:
You must also create div containers to house the PowerReviews content on your PDPs.
1. Ensure you have your Account Credentials, which can be found in your Implementation Project Workbook. If you do not have these in hand, please reach out to your Implementation Team.
2. Install your content containers:
<div id="pr-reviewsnippet"></div><div id="pr-reviewdisplay"></div>
3. Install the PowerReviews ui.js library and render function. Load the ui.js file before making the function call in the body of the page. This function should be placed at the bottom of the page after all content containers.
4. Replace the values for the following required variables with your specific information.
The render function can only be called once on each page, so if you find yourself needing to call it separately in different parts of your code, build an array and call the render function on that array.
For an additional performance enhancement, include the parameter enable_content_collection_modal and set it to false if the modal is not being used.
If you currently have no reviews for a product, an empty Review Display appears. You can modify the way this empty display renders using your own CSS to style the pr-no-reviews class found in the pr-review-snippet-container, or the pr-rd-no-reviews class for the entire display. For more information on CSS styling guidelines, see Customizing Your PowerReviews Platform.
If you wish to only display certain elements of the Review Display (i.e., Image Gallery, Review Snapshot, or Review List - see below), or to reorder the items within the Review Display, this can be done by rendering the individual components within the render call in place of the ReviewDisplay component.
You can find a full list of available components within our JavaScript Reference Guide.
Please note that if you change the components you are rendering, you should also update the names of the divs to reflect this. For example, if you wish to use the ReviewList component, you should name your div pr-reviewlist, etc.