A Medusa plugin for creating and managing product bundles
This plugin extends Medusa's functionality by adding product bundle capabilities. It allows merchants to create, manage, and sell product bundles in their Medusa-powered commerce applications.
- Create product bundles from existing products and collections
- Manage bundle pricing and inventory
- Custom workflows for bundle creation and management
- Admin UI extensions for bundle management
- API endpoints for bundle operations
This plugin is compatible with versions >= 2.4.0 of @medusajs/medusa
.
npm install @devx-commerce/bundle
# or
yarn add @devx-commerce/bundle
Add the plugin to your medusa-config.js
:
const plugins = [
// ...
{
resolve: '@devx-commerce/bundle',
options: {
// plugin options
},
},
]
Bundles can be created through the admin dashboard or programmatically using the provided API endpoints.
The plugin includes predefined workflows for bundle operations:
import { createBundleWorkflow } from '@devx-commerce/bundle/workflows'
// Execute the workflow
const { result } = await createBundleWorkflow(container).run({
input: {
collection_id: 'col_123',
// other bundle parameters
},
})
- Node.js version 20 or later
- Yarn
- Clone the repository
- Install dependencies:
yarn install
- Start development server:
yarn dev
yarn build
yarn test
Contributions are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.