|
1
|
<p align="center"> |
|
2
|
<a href="https://www.medusajs.com"> |
|
3
|
<picture> |
|
4
|
<source media="(prefers-color-scheme: dark)" srcset="https://user-images.githubusercontent.com/59018053/229103275-b5e482bb-4601-46e6-8142-244f531cebdb.svg"> |
|
5
|
<source media="(prefers-color-scheme: light)" srcset="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg"> |
|
6
|
<img alt="Medusa logo" src="https://user-images.githubusercontent.com/59018053/229103726-e5b529a3-9b3f-4970-8a1f-c6af37f087bf.svg"> |
|
7
|
</picture> |
|
8
|
</a> |
|
9
|
</p> |
|
10
|
<h1 align="center"> |
|
11
|
Draft Order Plugin |
|
12
|
</h1> |
|
13
|
|
|
14
|
<h4 align="center"> |
|
15
|
<a href="https://docs.medusajs.com">Documentation</a> | |
|
16
|
<a href="https://www.medusajs.com">Website</a> |
|
17
|
</h4> |
|
18
|
|
|
19
|
<p align="center"> |
|
20
|
Create and manage draft orders on behalf of customers in Medusa |
|
21
|
</p> |
|
22
|
<p align="center"> |
|
23
|
<a href="https://github.com/medusajs/medusa/blob/master/CONTRIBUTING.md"> |
|
24
|
<img src="https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat" alt="PRs welcome!" /> |
|
25
|
</a> |
|
26
|
<a href="https://www.producthunt.com/posts/medusa"><img src="https://img.shields.io/badge/Product%20Hunt-%231%20Product%20of%20the%20Day-%23DA552E" alt="Product Hunt"></a> |
|
27
|
<a href="https://discord.gg/xpCwq3Kfn8"> |
|
28
|
<img src="https://img.shields.io/badge/chat-on%20discord-7289DA.svg" alt="Discord Chat" /> |
|
29
|
</a> |
|
30
|
<a href="https://twitter.com/intent/follow?screen_name=medusajs"> |
|
31
|
<img src="https://img.shields.io/twitter/follow/medusajs.svg?label=Follow%20@medusajs" alt="Follow @medusajs" /> |
|
32
|
</a> |
|
33
|
</p> |
|
34
|
|
|
35
|
## Overview |
|
36
|
|
|
37
|
The Draft Order Plugin enables admin users to create and manage orders on behalf of customers. This is particularly useful for customer support scenarios or when customers place orders offline. |
|
38
|
|
|
39
|
## Features |
|
40
|
|
|
41
|
- **Create draft orders** from the Medusa Admin dashboard |
|
42
|
- **Manage items** in draft orders (add, update, remove) |
|
43
|
- **Add shipping methods** to draft orders |
|
44
|
- **Associate customers** with draft orders |
|
45
|
- **Convert draft orders** to regular orders for purchase completion |
|
46
|
|
|
47
|
|
|
48
|
## Installation |
|
49
|
|
|
50
|
1. Install the Draft Order plugin |
|
51
|
``` |
|
52
|
yarn add @medusajs/draft-order |
|
53
|
``` |
|
54
|
2. Configure the plugin in your medusa-config.ts |
|
55
|
``` |
|
56
|
module.exports = defineConfig({ |
|
57
|
projectConfig: { |
|
58
|
... |
|
59
|
}, |
|
60
|
plugins: [ |
|
61
|
{ |
|
62
|
resolve: "@medusajs/draft-order", |
|
63
|
options: {}, |
|
64
|
}, |
|
65
|
], |
|
66
|
}) |
|
67
|
``` |
|
68
|
3. Start your server |
|
69
|
|
|
70
|
## Requirements |
|
71
|
- Medusa application version >= 2.4.0 |
|
72
|
|
|
73
|
## Support |
|
74
|
|
|
75
|
## Community & Contributions |
|
76
|
|
|
77
|
The community and core team are available in [GitHub Discussions](https://github.com/medusajs/medusa/discussions), where you can ask for support, discuss roadmap, and share ideas. |
|
78
|
|
|
79
|
Join our [Discord server](https://discord.com/invite/medusajs) to meet other community members. |
|
80
|
|
|
81
|
## Other channels |
|
82
|
|
|
83
|
- [GitHub Issues](https://github.com/medusajs/medusa/issues) |
|
84
|
- [Twitter](https://twitter.com/medusajs) |
|
85
|
- [LinkedIn](https://www.linkedin.com/company/medusajs) |
|
86
|
- [Medusa Blog](https://medusajs.com/blog/) |