Product Reviews

You can integrate a third-party product review application into Salesforce B2C Commerce. The Storefront Reference Architecture (SFRA) includes a product decorator function that you can modify to meet your requirements.

The rating function is located in the following SFRA file:

app_storefront_base/cartridge/models/product/decorators/ratings.js

The object property decorator function (value) generates a random rating based on the product ID. Replace the following code with a call to get the rating:

object property
        value function