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
X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.