We've released the Enterprise CLI for seamless deployments of Next.js projects on the AWS with complete IaC (Terraform) setup. Learn more
Blazity Logo
Features

Reviews

Product reviews and rating system in enterprise-commerce

Introduction

Reviews are critical for every e-commerce platform, and Enterprise Commerce provides an easy way to integrate reviews with your storefront.

Currently, we've implemented logic for the Judge.me provider, but more integrations are coming soon.

How It Works

From a high-level perspective, the implementation breaks down into the following steps:

  • A user submits a review, and the data is pushed directly to the reviews provider.
  • A scheduled cron job periodically syncs reviews with the search index.
  • The data cache revalidates the frontend.

Why This Approach?

We've integrated reviews with our search solution because our architecture is designed to have a single source of truth for data retrieval. We run daily cron jobs (adjustable) between the search and review providers to ensure data stays in sync.

This approach also allows us to extend our Product Listing Page (PLP) functionality to filter and sort results based on their average rating.

Making Reviews More Dynamic

Near real-time updates are possible but often require a paid plan depending on the provider. If this is the case for your business, we can set up webhooks that will:

  • Call a webhook to update search when a new review is added.
  • Have the search call another webhook once data is updated to revalidate the Next.js data cache.

Please note that this functionality is currently not available in the demo. We are actively working on adding it and will update the documentation accordingly.

On this page