@devx-commerce/bundle
v0.0.3
Published
A starter for Medusa plugins.
Downloads
15
Readme
Overview
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.
Features
- 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
Compatibility
This plugin is compatible with versions >= 2.4.0 of @medusajs/medusa.
Installation
npm install @devx-commerce/bundle
# or
yarn add @devx-commerce/bundleConfiguration
Add the plugin to your medusa-config.js:
const plugins = [
// ...
{
resolve: '@devx-commerce/bundle',
options: {
// plugin options
},
},
]Usage
Creating Bundles
Bundles can be created through the admin dashboard or programmatically using the provided API endpoints.
Bundle Workflows
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
},
})Development
Prerequisites
- Node.js version 20 or later
- Yarn
Setup
- Clone the repository
- Install dependencies:
yarn install - Start development server:
yarn dev
Building
yarn buildTesting
yarn testContributing
Contributions are welcome! Please feel free to submit a Pull Request.
License
This project is licensed under the MIT License - see the LICENSE file for details.
