Skip to content

Medusa Wishlist provides functionality which stores wishlist items in a list, which can be then shared with others.

License

Notifications You must be signed in to change notification settings

RSC-Labs/medusa-wishlist

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Medusa Wishlist

What is it?

Medusa Wishlist provides functionality which stores wishlist items in a list, which can be then shared with others.

Installation

Plugin system

Plugins are not yet supported in Medusa 2.0, so this part is TODO.

Copy the code

You can copy the code from /src into your Medusa project.

Add module to medusa-config.js:

  {
    resolve: "./modules/wishlist",
  }

Database migration

Medusa Wishlist introduces new models in database. To have it working, you need to firstly execute migrations:

npx medusa db:migrate

Overview

Everything is covered by the API definition - details are here: Store API.

In short - every customer has wishlist entity created automatically when first item is being added. Items can added, updated (e.g. by quantity) or deleted. Wishlist can be shared by using token.

Configuration

Update JWT secret

Sharing functionality uses JWT to generate a token. To have it properly working, you shall set jwtSecret in options, e.g.:

  {
    resolve: "./modules/wishlist",
    options: {
      jwtSecret: 'supersecret'
    }
  }

About

Medusa Wishlist provides functionality which stores wishlist items in a list, which can be then shared with others.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published