• Интеграции и плагины
  • Сообщество
  • Связаться с нами
Документация

Нужна помощь в разработке плагина интеграции для Medusa?

Написать намНайти плагины

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

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

  • Ресурсы
  • Интеграции и плагины
  • Сообщество
  • Medusa Чат в Telegram
  • Medusa Новости в Telegram
  • Документация
  • Контакты
  • head@gorgojs.com
  • TelegramGitHub
MedusaПлагиныWishlist
W

Wishlist

Alphabite's Medusa Wishlist Plugin

Нужна доработка этого плагина?

Связаться с нами
npm install @alphabite/medusa-wishlist
Категория
Другое
Создано
Alphabite
Версия
0.5.5
Последнее обновление
2 месяца назад
Ежемесячные загрузки
219
Звезды на Github
4
npmNPMGitHubGithub
MedusaПлагиныWishlist

🧞‍♂️ Wishlist Plugin for Medusa

The Alphabite Wishlist Plugin is the most feature-complete wishlist system for MedusaJS. It supports both authenticated and guest users, multiple wishlists per user, and a full-featured SDK client for frontend integration.

This plugin ships with:

  • 🔌 A fully typed JS SDK plugin
  • 📭 A Postman collection
  • ✅ Support for guest & authenticated customers

📚 Table of Contents

  • ✨ Features
  • 📦 Installation
  • 🔧 Plugin Options
  • 📦 API Endpoints
  • 🧑‍💻 SDK Usage
  • 🧪 Guest Wishlist Flow
  • 🧩 Requirements
  • 📭 Postman Collection
  • 🤝 Contributing

✨ Features

  • ✅ Multiple wishlists per customer
  • ✅ Add/remove items to/from any wishlist
  • ✅ Guest wishlist supported + transfer when registered
  • ✅ Fully typed Medusa JS SDK integration with our SDK client
  • ✅ Pagination and filtering built-in

📦 Installation

Install the plugin via npm:

npm install @alphabite/medusa-wishlist

In your , register the plugin:

const plugins = [
{
resolve: '@alphabite/medusa-wishlist',
options: {
// all are optional, read bellow about default values
wishlistFields: [],
wishlistItemsFields: [],
includeWishlistItems: true,
includeWishlistItemsTake: 5,
allowGuestWishlist: true,
},
},
]

🔧 Plugin Options

OptionTypeDefaultDescription
Selectively include Medusa product or product variant fields on wishlist list/retrieve endpoints that have wishlist items included
Selectively include Medusa product or product variant fields on wishlist items list/retrieve endpoints
Automatically populate wishlist items in
Limit number of items if is true
Enables wishlist creation & usage without authentication (cookie-based)

📦 API Endpoints

All endpoints are available under .

MethodEndpointAuthDescription
GET✅List wishlists for the current customer
POST➖ (optional)Create a new wishlist
GET➖ (optional)Retrieve a wishlist by ID
PUT✅Update wishlist metadata
DELETE✅Delete a wishlist
POST✅Transfer guest wishlist to logged-in user
GET➖ (optional)Get items in a wishlist
POST➖ (optional)Add an item to the wishlist
DELETE➖ (optional)Remove an item from the wishlist

🧑‍💻 SDK Usage

❗❗❗Read more about our Medusa compatible SDK here

import { AlphabiteMedusaClient, wishlistPlugin } from '@alphabite/sdk'
const sdk = new AlphabiteMedusaClient({
{
baseUrl,
debug: process.env.NODE_ENV === "development",
publishableKey: process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY,
},
[wishlistPlugin],
{
getAuthHeader: () => { return { authorization: `Bearer ${customerJwt}` } },
}
})
// Create wishlist
await sdk.alphabite.wishlist.create({ name: 'My Sneakers' })
// Add item
await sdk.alphabite.wishlist.addItem({
id: 'wishlist_id',
product_variant_id: 'variant_id',
})
// List items
const { data } = await sdk.alphabite.wishlist.listItems({ id: 'wishlist_id' })

🧪 Guest Wishlist Flow

Guest wishlists work like guest carts:

  1. Create a wishlist (no auth required)
  2. Save the in a cookie
  3. Use that ID for listing/adding/removing items
  4. When the user signs up or logs in, call the endpoint to associate it:
await medusa.alphabite.wishlist.transfer({ id: wishlistId })

After that, the cookie is no longer needed.


🧩 Requirements

  • Medusa v2.5.0+
  • Works with both and

📭 Postman Collection

You’ll find the ready-to-import Postman collection at:

Use it to explore and test all endpoints interactively.


🤝 Contributing

We welcome issues, feedback, and PRs. Fork it, build it, improve it.

Let’s make commerce more personalized 🛍️

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

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

Plugin gati

От Devx Commerce

Gati ERP integration for Medusa

npm
Другое
P

Product reviews

От Lambda Curry

Product Reviews Plugin for Medusa

GitHubnpm
Другое
V

Variant images

От Betanoir

A variant images plugin for Medusa V2.

GitHubnpm

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

Посмотреть все
CMS
S

Storyblok

От Alphabite

Alphabite's Medusa Storyblok Plugin

GitHubnpm
Платежи
P

Paypal

От Alphabite

Alphabite's Medusa Paypal Plugin

GitHubnpm