@enomshop/bulk-edit
v0.5.0
Published
A starter for Medusa plugins.
Maintainers
Readme
Medusa V2 Inventory Bulk Edit Plugin
A Medusa v2 admin plugin that provides a powerful bulk edit interface for inventory items. It allows merchants to quickly update stock levels, prices, and buying prices from a single, spreadsheet-like view directly within the Medusa Admin.
How it Works
This plugin injects a custom admin route into your Medusa dashboard using the @medusajs/admin-sdk.
Key functionalities include:
- Inline Editing: Click on any stock, price, buying price, or variant title to edit it inline.
- Draft System: Changes are held in a "draft" state. You can make dozens of edits across multiple pages, review the number of unsaved changes, and commit them all at once using the Save All button.
- Multi-Location Support: Easily view and reassign stock to different inventory locations.
- Price List Management: Update default prices and specific price list prices in one place.
- Low Stock Mode: Toggle the "Low Stock Mode" to quickly filter and view variants that are running low on stock (below the threshold).
- CSV Import/Export: Export your current inventory to a CSV file, make bulk changes in Excel or Google Sheets, and import the CSV back to apply the updates.
Installation
Install the plugin package in your Medusa backend project:
npm install @enomshop/bulk-edit # or yarn add @enomshop/bulk-edit(Note: If you are developing this locally, you can use a local workspace or copy the source files into your project).
Add the plugin to your
medusa-config.tsfile:import { defineConfig } from "@medusajs/framework/utils" module.exports = defineConfig({ projectConfig: { // ... your project config }, plugins: [ // ... other plugins { resolve: "@enomshop/bulk-edit", options: { // Add any plugin-specific options here if needed } } ] })Build your admin dashboard to include the new UI route:
npm run build # or yarn buildStart your Medusa server:
npm run dev # or yarn dev
Usage
- Open your Medusa Admin dashboard in your browser.
- Navigate to Inventory in the main sidebar.
- Click on the Bulk Edit nested route (usually found at
/app/inventory/bulk-edit). - Start editing your inventory inline, or use the Export and Import buttons in the top right for bulk CSV operations.
Compatibility
This plugin is built specifically for Medusa v2 and utilizes the new @medusajs/admin-sdk and @medusajs/ui packages for seamless integration with the core admin dashboard.
