Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

Provides a review feature for Drupal Commerce products.

Features

Frontend

  • Allows customers to write reviews for products on your site. Customers are limited to one review per product.
  • Automatic calculation and display of average ratings on products.
  • Review sorting and filtering options on a product's reviews page.
  • Logged out customers see a link inviting them to leave a review after being asked to log in.
  • Customers can view, edit, and delete their own reviews when granted related permissions.
  • Customer's reviews are displayed in a list on their account page.

Design

  • Configurable review types allow limiting to specific product types.
  • Additional fields can be added to review types enabling extras like customer pictures, videos, etc.
  • Ratings can be displayed as numbers or stars. Multiple format options for display.
  • Reviews are displayed in a view. Layout can be customized in the view and using twig templates.

Administration

  • Fully featured administrative view of all reviews with sorting, filtering, and bulk actions.
  • Bulk review management for efficiently managing large numbers of reviews. Publish, unpublish, or delete multiple reviews at once.
  • Reviews can be published automatically on submission or stay unpublished until a site administrator publishes them.
  • Fine grained permissions to control what customers can do with their own reviews.
  • Email alerts can be sent when new reviews are submitted.

Requirements

Commerce Product Review depends on Drupal Commerce with a strict dependency on commerce_product and commerce_price sub modules.

The rateit.js Javascript library is required for displaying both rating values and rating form as stars.

Installation

It is recommended to use Composer to get this module with all dependencies.

rateit.js Javascript library

The rateit.js Javascript library is required for displaying both rating values and rating form as stars. There are two ways to include the library:

Install with Composer

If you have already installed the module via Composer, we recommend to do the same with the rateit.js library. Changes are required to your composer.json file to allow installing javascript libraries via composer correctly (in the required destination path).

We highly recommend to use Asset Packagist in order to load Javascript libraries via Composer.

Add the following snippets into your project's composer.json file. If there are already 'repositories' and/or 'extra' entries in your project's composer.json, merge these new entries with the already existing entries.

Add this into the repositories section:

    "repositories": [
        {
            "type": "composer",
            "url": "https://asset-packagist.org"
        }
    ],

Add this to the extras section:

"extra": {
    "installer-types": [
        "bower-asset",
        "npm-asset"
    ],
    "installer-paths": {
        "web/libraries/{$name}": [
            "type:drupal-library",
            "type:bower-asset",
            "type:npm-asset"
        ],
    }
}

This specifies where the javascript library is installed in your project.

After that, run:
composer require "npm-asset/jquery.rateit"

Install Manually

Download the library and extract the file under the "libraries" directory. Ensure, that the library's js and css files are found within the following path: libraries/jquery.rateit/scripts

Configuration

  1. Install the module.
  2. Go to the product review types page at /admin/commerce/config/product-review-types
  3. Configure the "default" review type or create your own.
    - On the edit page select which product types should be enabled for the given product review type. You must select product types for the widget to appear.
    - If you want to be notified of new product reviews enter an email address.
    - You can optionally add your own fields to product review types, as well as change the form and view display.
  4. On the product type display configuration page (eg /admin/commerce/config/product-types/default/edit/display) ensure that "Overall rating" is enabled and placed in your desired location.
  5. Adjust the permissions to your needs. By default, any user may view the published product reviews.
    - Writing reviews is only allowed for authenticated users by default.
    - Giving create access to guest users will not work as the module relies upon user accounts to enforce one review per person per product.
    - New product reviews won't get published automatically without admin approval, unless you assign the "Publish product review" permission to the reviewing user's role.

Known Issues

The "Write the first review" link does not show up on products with no reviews if layout builder is used on the product. There is a Drupal Core issue to address this:
#3067982 Formatters for empty fields do not render with layout builder enabled

Core can be patched using the merge request #12052
Once patched there will be an option in the configuration for overall rating "Show block when field is empty" that needs to be checked.

Upgrading and versions

The 1.x version of the module is feature frozen and will only get critical bugfixes, security updates, and new Drupal version compatibility.

All new features, user interfaces changes, and major changes are in the 2.x version.

Sites on 1.x can easily upgrade to 2.x by installing it and running a database upgrade. Your existing settings will be preserved. For info about changes between the versions that might require further attention see the release notes for 2.0.0-rc1.

Credits

Commerce Product Review module was originally developed by Mag. Andreas Mayr.

All initial development was sponsored by agoraDesign KG.

Development of the 2.x version was sponsored by New ProCycle LLC.

Currently maintained by Mag. Andreas Mayr and Ryan Hovland.

Activity

Total releases
9
First release
May 2025
Latest release
2 months ago
Release cadence
31 days
Stability
33% stable

Release Timeline

Releases

Version Type Release date
2.0.0 Stable Jan 19, 2026
8.x-1.2 Stable Nov 18, 2025
2.0.0-rc3 Pre-release Nov 18, 2025
2.0.0-rc2 Pre-release Aug 6, 2025
2.0.x-dev Dev Aug 1, 2025
2.1.x-dev Dev Aug 1, 2025
2.0.0-rc1 Pre-release Aug 1, 2025
2.x-dev Dev May 15, 2025
8.x-1.1 Stable May 15, 2025