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

Меч Moscow · Fashion

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

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

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

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

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

Wishlist

Позвольте гостям и пользователям создавать вишлисты

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

Связаться с нами
npm install @alphabite/medusa-wishlist
Категория
Другое
Создано
Alphabite
Версия
0.7.4
Последнее обновление
1 неделю назад
Ежемесячные загрузки
2005
Звезды на Github
6
npmNPMGitHubGithub

🧞‍♂️ 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

⚠️ Version Compatibility

Please install the plugin version that matches your Medusa version:

Medusa VersionPlugin VersionInstall Command
and above
Below

Installing the latest version (Medusa 2.14.* and above)

npm install @alphabite/medusa-wishlist

Installing version 0.5.8 (Medusa 2.13.*)

npm install @alphabite/medusa-wishlist@0.5.8

Installing version 0.5.7 (Medusa versions below 2.13.0)

npm install @alphabite/medusa-wishlist@0.5.7

ℹ️ Using a mismatched version may result in compatibility issues. Make sure to check your Medusa version () before installing.


📚 Table of Contents

  • ✨ Features
  • 📦 Installation
  • 🔧 Plugin Options
  • 🛠️ Admin
  • 📦 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
  • ✅ Admin page with Settings + Analytics tabs

📦 Installation

Install the plugin via npm:

npm install @alphabite/medusa-wishlist

In your , register the plugin:

1const plugins = [
2 {
3 resolve: "@alphabite/medusa-wishlist",
4 options: {
5 // all are optional, read bellow about default values
6 wishlistFields: [],
7 wishlistItemsFields: [],
8 includeWishlistItems: true,
9 includeWishlistItemsTake: 5,
10 allowGuestWishlist: true,
11 },
12 },
13];

🔧 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)

🛠️ Admin

The plugin adds a Wishlists page to the admin sidebar () with two tabs: Settings (guest / multiple-wishlist toggles) and Analytics (a read-only dashboard of KPIs, an activity trend, and the most-wishlisted products and variants).

See docs/admin-analytics.md for the analytics endpoint and response shape.


📦 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

1import { AlphabiteMedusaClient, wishlistPlugin } from '@alphabite/sdk'
2
3const sdk = new AlphabiteMedusaClient({
4 {
5 baseUrl,
6 debug: process.env.NODE_ENV === "development",
7 publishableKey: process.env.NEXT_PUBLIC_MEDUSA_PUBLISHABLE_KEY,
8 },
9 [wishlistPlugin],
10 {
11 getAuthHeader: () => { return { authorization: `Bearer ${customerJwt}` } },
12 }
13})
14
15// Create wishlist
16await sdk.alphabite.wishlist.create({ name: 'My Sneakers' })
17
18// Add item
19await sdk.alphabite.wishlist.addItem({
20 id: 'wishlist_id',
21 product_variant_id: 'variant_id',
22})
23
24// List items
25const { 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 🛍️

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

Посмотреть все
Другое
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

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

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

Storyblok

От Alphabite

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

Загрузка данных
GitHubnpm
Платежи
PayPal logo

PayPal

От Alphabite

Используйте PayPal как платежный провайдер

Загрузка данных
GitHubnpm
Другое
R

Reviews

От Alphabite

Alphabite's Medusa Reviews Plugin

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