medusa-plugin-discount-generator

1.1.28 • Public • Published

Discount Generator

Generate dynamic discount codes in your Medusa backend.

Medusa Website | Medusa Repository

Features

  • Provides a service that can be used to generate a dynamic discount with a random code.
  • Provides an endpoint that can be used to generate a dynamic discount with a random code.

Prerequisites


How to Install

1. Run the following command in the directory of the Medusa backend:

npm install medusa-plugin-discount-generator

2. In medusa-config.js add the following at the end of the plugins array:

const plugins = [
  // ...
  `medusa-plugin-discount-generator`
]

Test the Plugin

Try using the DiscountGeneratorService in your code, or using the /discount-code endpoint to generate a random discount code.

Readme

Keywords

none

Package Sidebar

Install

npm i medusa-plugin-discount-generator

Weekly Downloads

66

Version

1.1.28

License

MIT

Unpacked Size

45.3 kB

Total Files

5

Last publish

Collaborators

  • sebrindom
  • oliverjuhl