Back to Plugins

Badge Plugin

A Medusa v2 plugin that enables custom badge management for products.


Overview

This plugin allows you to add and manage custom badges for your products, helping highlight special features, promotions, or product attributes.

Requirements

Installation

npm install medusa-badge-plugin

Configuration

Add the plugin to your medusa-config.ts:

module.exports = {
  plugins: [
    // ... other plugins
    'medusa-badge-plugin',
  ],
}

Database Migration

Run the migration to create necessary tables:

npx medusa db:migrate

API Routes

The plugin adds API routes for badge management. You can test the functionality by importing the provided OpenAPI Spec file into Postman.

Testing

A Postman collection is included in the project documentation folder for API testing.

Use Cases

Features


Explore More Medusa Plugins

Find more powerful plugins and integrations to enhance your Medusa store. Browse our collection of community-driven solutions.

Free & Open Source
Community Driven
Easy Integration