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

Меч Moscow · Fashion

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

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

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

Strapi

Управляйте контентом и медиа-файлами товаров с автосинхронизацией

npm install @devx-commerce/strapi
Категория
CMS
Создано
Devx Commerce
Версия
2.0.0-beta.0
Последнее обновление
1 месяц назад
Ежемесячные загрузки
Загрузка данных
Звезды на Github
0
npmNPM

Medusa Plugin - Strapi

Documentation | Website

A plugin for implementing Strapi as CMS for Medusa

Features

  • 🔄 Seamless integration between Medusa and Strapi
  • 📝 Flexible content management for your e-commerce store
  • 🖼️ Rich media management for product images and assets
  • 🚀 Extend product information with custom fields and content
  • 📱 Headless architecture for omnichannel commerce
  • 🔄 Automatic synchronization between Medusa and Strapi

Requirements

This plugin requires:

  • Medusa version >= 2.8.0
  • Strapi v5 (latest stable)

Installation

  1. Install the plugin:
1npm install @devx-commerce/strapi @strapi/client
2# or
3yarn add @devx-commerce/strapi @strapi/client
  1. Add the plugin to your :
1const { defineConfig } = require("@medusajs/medusa"); // or "@medusajs/framework/utils"
2
3module.exports = defineConfig({
4 // ... other config
5 plugins: [
6 // ... other plugins,
7 {
8 resolve: "@devx-commerce/strapi",
9 options: {
10 base_url: process.env.STRAPI_URL,
11 api_key: process.env.STRAPI_API_KEY,
12 },
13 },
14 ],
15});

Setup

Setting up Strapi

  1. Install Strapi if you haven't already:
npx create-strapi-app@latest my-strapi-cms
  1. Start your Strapi server:
1cd my-strapi-cms
2npm run develop
  1. Create an API token in Strapi:

    • Go to Settings > API Tokens
    • Create a new full access token
    • Copy the token to use in your Medusa configuration
  2. Create Product and Variant collections in Strapi:

    • In your Strapi admin panel, go to Content-Type Builder
    • Create a new collection type called Product
      • Add a title field (Text type)
      • Add a systemId field (Text type, Unique)
    • Create another collection type called Variant
      • Add a title field (Text type)
      • Add a systemId field (Text type, Unique)
    • Save and publish your new collection types
  3. Configure environment variables for your Medusa backend:

    1STRAPI_URL=http://localhost:1337
    2STRAPI_API_KEY=your-api-token-here

Synchronizing data

After installation and setup, the plugin will automatically:

  • Create and update products, collections & categories in Strapi when they are modified in Medusa
  • Sync product, collection & category metadata between Medusa and Strapi
  • Allow extending product data with Strapi's content types

Usage

Once the plugin is set up, you can use Strapi's admin panel to add rich content to your products and use the Strapi API to fetch this content for your storefront.

Example of fetching product content from Medusa (with Strapi fields):

1// In your storefront
2async function getProductContent(productId) {
3 const response = await fetch(
4 `${MEDUSA_BASE_URL}/store/products/${productId}?fields=cms_product.*`,
5 {
6 headers: {
7 "x-publishable-api-key": STOREFRONT_PUBLISHABLE_API_KEY,
8 },
9 },
10 );
11 const data = await response.json();
12 return data.data[0];
13}

Documentation

  • Medusa Documentation
  • Strapi Documentation
  • Plugin Guide

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

Посмотреть все
CMS
Storyblok logo

Storyblok

От Alphabite

Синхронизируйте товары и медиа с Storyblok

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

Tolgee

От Steelrazor47

Удобно переводите контент магазина с Tolgee

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

Strapi plugin

От Kepatz

Medusa plugin for Strapi as CMS

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

Еще от этого автора

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

Gati

От Devx Commerce

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

Загрузка данных
npm
Авторизация
Passwordless logo

Passwordless

От Devx Commerce

Добавьте беспарольный вход по SMS

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