• Сообщество
  • Блог
Документация
Плагины и интеграцииВсе расширения для Medusa от сообществаСтартерыЗапускайте проекты быстрее с готовыми решениями
ЭкспертыПодберите специалиста для разработки и развития вашего проекта на MedusaКейсыПосмотрите примеры Medusa в продакшене и успешные внедрения
Меч Moscow
Комплексная e-commerce платформа на Medusa для московского fashion-бренда

Меч Moscow · Fashion

Gorgo снижает затраты на адаптацию Medusa к локальным рынкам.

Мы разрабатываем плагины интеграции, осуществляем поддержку и развиваем сообщество разработчиков на Medusa в Telegram.

  • Ресурсы Medusa
  • Плагины и интеграции
  • Стартеры
  • Эксперты
  • Кейсы
  • Medusa Чат в Telegram
  • Medusa Новости в Telegram
  • Документация Gorgo
  • Связаться с нами
  • TelegramGitHub
Плагины
Multivendor Marketplace logo

Multivendor Marketplace

Плагин Medusa для нескольких продавцов

npm install @techlabi/medusa-marketplace-plugin
Категория
Другое
Создано
Tech-Labi
Версия
0.63.0
Последнее обновление
3 недели назад
Ежемесячные загрузки
Загрузка данных
Звезды на Github
0
npmNPM

Medusa Multivendor Marketplace Plugin

This plugin transforms your Medusa store into a robust multivendor marketplace.

Background

The plugin was created as a result of a four-part series articles on Medium re how to create multivendor marketplace with Medusa 2.0:

  • 🛠 Part 1: setting up the multi-vendor structure and understanding how to manage multiple sellers on a single Medusa instance
  • 🧑‍💼 Part 2: building a powerful Super Admin layer to oversee vendors, products, orders, and more
  • 🎨 Part 3: customizing the Medusa Admin Dashboard to give super admins and vendors a clean, user-friendly experience
  • 🎨 Part 4: bring it all together - packaging everything into a Medusa 2 plugin

Features

  • Store Creation:
    • The plugin provides an intuitive interface for creating new vendor stores, simplifying the onboarding process for new sellers.
  • Entity Separation:
    • The plugin ensures that each store has its own independent set of entities (customers, orders, products, etc.), preventing data conflicts and ensuring privacy.
  • Impersonation:
    • Super admins can seamlessly switch between vendor accounts, enabling them to:
      • View the marketplace from a vendor's perspective.
      • Troubleshoot issues efficiently.
      • Provide personalized support.

Installation

  1. Add plugin:

    yarn add @techlabi/medusa-marketplace-plugin
  2. Add the following variables to your file:

    1API_KEY=supersecret
    2VITE_BACKEND_URL=http://localhost:9000
    • - The secret key used to create the super admin.
    • - The URL of your Medusa backend, required for custom admin components.
  3. Apply patch:

    To ensure proper setup, follow these steps:

    1. Open : Open the file in your project's root directory.

    2. Add script: Add the following script under the section:

      1"scripts": {
      2 "postinstall": "node node_modules/@techlabi/medusa-marketplace-plugin/.medusa/server/src/patch-admin.js",
      3 // ... other scripts ...
      4}
    3. Run installation: Execute the installation process using yarn:

      yarn

      This script will automatically execute after all dependencies are installed, applying the necessary patch.

  4. Add the following code to your file:

    1module.exports = defineConfig({
    2 projectConfig: { ... },
    3 plugins: [
    4 {
    5 resolve: "@techlabi/medusa-marketplace-plugin",
    6 options: {},
    7 },
    8 ],
    9})

    This code connect plugin and helps to resolve an issue similar to https://github.com/medusajs/medusa/issues/11248.

  5. Run database migrations:

    npx medusa db:migrate
  6. Start the project:

    yarn dev

Envs

  • - allow API keys management for regular vendors
  • - to disable signup widget on login page. Must be configured in :
    1admin: {
    2 vite: config => {
    3 config.define["__VITE_DISABLE_SIGNUP_WIDGET__"] = JSON.stringify(true);
    4 },
    5 },

Demo app

https://github.com/Tech-Labi/medusa2-marketplace-demo

Functionality Overview

Key features included:

  • Super Admin Role:
    • Introduces a super admin role with the ability to manage all aspects of the marketplace.
    • Super admins can:
      • Create and manage multiple vendor stores.
      • Impersonate vendor accounts to troubleshoot and provide support.
      • Access and analyze data across all stores.
  • Vendor Store Management:
    • Enables the creation of individual vendor stores, each with its own:
      • Customer Base: Independent customer lists for each vendor.
      • Order Management: Separate order tracking and fulfillment.
      • Price Lists: Unique pricing strategies for each vendor.
      • Product Catalogs: Distinct product offerings per store.
      • Shipping Profiles: Tailored shipping options.
      • Stock Locations: Independent inventory management.
      • User Accounts: Vendor-specific user management.
  • Data Separation:
    • The plugin ensures clear separation of data between stores using Medusa's module links:
    • This architecture allows vendors to operate independently while maintaining a cohesive marketplace experience for customers.

Creating a Super Admin

To create a super admin, use the following request:

curl -X POST http://localhost:9000/stores/super -d '{ "email":"admin@test.com", "password": "supersecret"}' -H 'Content-Type: application/json' -H 'Authorization: supersecret'

Contributing

Feel free to contribute to this plugin by submitting pull requests or creating issues for bug reports and feature requests.

License

Apache 2.0

Еще в этой категории

Посмотреть все
Другое
Gati logo

Gati

От Devx Commerce

Синхронизируйте Medusa с Gati ERP

Загрузка данных
npm
Другое
Product Reviews logo

Product Reviews

От Lambda Curry

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

Загрузка данных
GitHubnpm
Другое
Variant Images logo

Variant Images

От Betanoir

Организуйте и загружайте варианты изображений в Medusa

Загрузка данных
GitHubnpm