Skip to main content

๐Ÿงบ Supporting Multiple Wishlists

The Wishlist Plugin supports multiple wishlists per customer out of the box. This enables richer customer experiences and advanced personalization features.


๐Ÿ’ก Why Use Multiple Wishlists?โ€‹

Here are a few common use cases:

  • ๐Ÿ›’ "Buy Later" list โ€” A wishlist for items the customer is thinking about
  • ๐ŸŽ Gift registry โ€” For weddings, birthdays, or other events
  • ๐Ÿงข Style collections โ€” Curated items by category (e.g. "Winter Gear", "Sneakers", "Accessories")
  • ๐Ÿ‘€ Private vs Public โ€” One wishlist for sharing, another for personal planning

โš™๏ธ Creating Multiple Wishlistsโ€‹

To create a wishlist, simply call the POST /store/wishlists endpoint multiple times.

You can store multiple wishlist IDs per customer and show a selector/dropdown in the UI.

const createdWishlist = await sdk.alphabite.wishlist.create({
sales_channel_id: "sc_...",
name: "Optional name", // optional
});
API Reference

Learn more about our Medusa SDK Wrapper Alphabite Medusa SDK Wrapper ๐Ÿ”—

You can view the full endpoint documentation for Create a Wishlist ๐Ÿ”—


๐Ÿ“‹ Listing Wishlistsโ€‹

To show the user all their saved wishlists:

const retrievedWishlist = await sdk.alphabite.wishlist.list({});
API Reference

Learn more about our Medusa SDK Wrapper Alphabite Medusa SDK Wrapper ๐Ÿ”—

You can view the full endpoint documentation for List Wishlists ๐Ÿ”—

โž• Adding Items to a Specific Wishlistโ€‹

Every addItem operation requires a wishlist ID.

const addedWishlistItem = await sdk.alphabite.wishlist.addItem({
id: "wl_...",
product_variant_id: "variant_...",
});

This lets users add products to specific lists from dropdowns or modal selectors.

API Reference

Learn more about our Medusa SDK Wrapper Alphabite Medusa SDK Wrapper ๐Ÿ”—

You can view the full endpoint documentation for Add Item to Wishlist ๐Ÿ”—


๐Ÿ”„ Renaming or Updatingโ€‹

You can rename any wishlist using:

const updatedWishlist = await sdk.alphabite.wishlist.update({
id: "wl_...",
name: "New Name", // optional
});
API Reference

Learn more about our Medusa SDK Wrapper Alphabite Medusa SDK Wrapper ๐Ÿ”—

You can view the full endpoint documentation for Update a Wishlist ๐Ÿ”—


๐Ÿ”ข Total Items Across All Wishlistsโ€‹

To power a UI counter (like a wishlist badge in the header), call the total-items-count endpoint.

const updatedWishlist = await sdk.alphabite.wishlist.totalItemsCount({
id: "wl_...", // optional, to get count for a specific wishlist, omit for all wishlists items count
});

This works with both guest and customer wishlists.

๐Ÿ’ก If you support multiple wishlists, this is the preferred way to get an accurate item count.