Вышел Модуль интеграций 2.0 для MedusaЧитать анонс
Product Reviews logo

Product Reviews

Добавляйте рейтинги, отзывы и модерацию товаров

npm install @lambdacurry/medusa-product-reviews
Категория
Создано
Версия
1.4.0
Последнее обновление
7 месяцев назад
Ежемесячные загрузки
Загрузка данных

@lambdacurry/medusa-product-reviews

A plugin that adds product review and moderation capabilities to your Medusa application, with built-in admin responses and review statistics.

This plugin is part of the Medusa Plugins Collection.

Features

See a demo in our Medusa Starter

  • Product reviews with ratings
  • Review statistics and analytics
  • Review moderation workflow (//)
  • Admin response management
  • SDK for Store and Admin operations

Prerequisites

Installation and Configuration

  1. Install the plugin:
  1. Add to :
  1. Run migrations:
yarn medusa db:migrate

Using the Plugin SDK

For detailed SDK setup and configuration, refer to the @lambdacurry/medusa-plugins-sdk README.

Store Operations

Admin Operations

Review Workflow

  1. Creation: Reviews are set to:

    • status by default
    • status if is set in plugin options
  2. Moderation: Admins can:

    • List and filter reviews
    • Update review status (approve/flag)
    • Manage responses (create/update/delete)

Available Endpoints

Admin Endpoints

  • - List all reviews
  • - Add a response
  • - Update response
  • - Delete response
  • - Update status

Store Endpoints

  • - List reviews
  • - Create/Update review
  • - Get statistics

Local Development

IMPORTANT: A running PostgreSQL instance is required. The plugin expects and environment variables to be set. If not provided, both default to "postgres".

Available scripts:

Installing the plugin in your Medusa project for local development

After publishing the plugin locally by running yarn dev:publish, go to the root of your Medusa project and run the following commands:

Compatibility

This plugin is compatible with versions of .

License

MIT License