cancel
Showing results for 
Search instead for 
Did you mean: 
CommunityJedi22
Community Manager
Community Manager

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

Components

The Review components include:

  • ReviewSnippet - Shows the aggregate rating and review count. You will install this above the fold.
  • ReviewDisplay - Shows the Review Snapshot, Review List, and Image Gallery (as applicable) of individual customer reviews. You will install this below the fold.

You must also create div containers to house the PowerReviews content on your PDPs.



Installations Steps

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:

  • Install the Review Snippet container
    Example: <div id="pr-reviewsnippet"></div>

  • Install the Review Display container
    Example: <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.

CommunityJedi22_0-1756393915353.png

4. Replace the values for the following required variables with your specific information.

CommunityJedi22_1-1756393947144.png

Multiple Render Functions and Performance

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.

 

Products That Have Zero Reviews

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.

 

Additional Customizations

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.

CommunityJedi22_2-1756393970944.png

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.

CommunityJedi22_3-1756393991208.png

 

Version history
Revision #:
2 of 2
Last update:
‎12-04-2025 01:00 PM
Updated by:
 
Contributors