|
1
|
--- |
|
2
|
sidebar_position: 9 |
|
3
|
sidebar_label: "Manage Draft Order" |
|
4
|
tags: |
|
5
|
- user guide |
|
6
|
- order |
|
7
|
products: |
|
8
|
- order |
|
9
|
--- |
|
10
|
|
|
11
|
import { |
|
12
|
ArrowUpRightOnBox, |
|
13
|
EllipsisHorizontal, |
|
14
|
Plus, |
|
15
|
PencilSquare, |
|
16
|
XMark |
|
17
|
} from "@medusajs/icons" |
|
18
|
|
|
19
|
export const metadata = { |
|
20
|
title: `Manage Draft Order Details in Medusa Admin`, |
|
21
|
} |
|
22
|
|
|
23
|
# {metadata.title} |
|
24
|
|
|
25
|
In this guide, you'll learn how to manage draft order details in the Medusa Admin. |
|
26
|
|
|
27
|
<Note title="Prerequisite"> |
|
28
|
|
|
29
|
If you're using a version earlier than v2.10.0, you must [install the Draft Orders Plugin manually](!resources!/commerce-modules/order/draft-orders). Your technical team should handle the plugin installation. |
|
30
|
|
|
31
|
</Note> |
|
32
|
|
|
33
|
## View Draft Order Details |
|
34
|
|
|
35
|
To view the details of a draft order: |
|
36
|
|
|
37
|
1. Go to Orders -> Drafts. |
|
38
|
2. Click on the draft order you want to view. |
|
39
|
|
|
40
|
This will open the draft order's details page, which is divided into several sections. |
|
41
|
|
|
42
|
### Summary Section |
|
43
|
|
|
44
|
The Summary section includes a summary of the items the customer purchased, as well as totals related to taxes, shipping, and more. Use this section to get a quick overview of the draft order, [convert it to a regular order](#convert-draft-order-to-regular-order), or [manage its items](#manage-draft-orders-items). |
|
45
|
|
|
46
|
 |
|
47
|
|
|
48
|
### Customer Section |
|
49
|
|
|
50
|
The Customer section shows the customer’s details, including their contact information and shipping address. Use this section to view and [edit the customer’s details pertaining to the order](#manage-draft-orders-customer-details). |
|
51
|
|
|
52
|
 |
|
53
|
|
|
54
|
### Activity Section |
|
55
|
|
|
56
|
The Activity section of the draft order details page shows a summary of the changes made to the draft order. That includes updates to items and shipping methods. |
|
57
|
|
|
58
|
 |
|
59
|
|
|
60
|
### Shipping Section |
|
61
|
|
|
62
|
The Shipping section shows the draft order's shipping details, including the shipping methods chosen for each shipping profile associated with the draft order's items. Use this section to view and [manage the shipping methods for the draft order](#manage-draft-orders-shipping-methods). |
|
63
|
|
|
64
|
 |
|
65
|
|
|
66
|
## Metadata Section |
|
67
|
|
|
68
|
The Metadata section allows you to view and [manage custom metadata associated with the draft order](#manage-draft-orders-metadata). Metadata can be useful for storing additional information about the order that is not covered by the default fields. |
|
69
|
|
|
70
|
### JSON Section |
|
71
|
|
|
72
|
The JSON section is useful for developers to view the raw order data in JSON format. Developers can use this section to debug and troubleshoot issues related to the order. |
|
73
|
|
|
74
|
To view the JSON structure, click the <InlineIcon Icon={ArrowUpRightOnBox} alt="Expand" /> icon. |
|
75
|
|
|
76
|
--- |
|
77
|
|
|
78
|
## Edit Draft Order's Sales Channel |
|
79
|
|
|
80
|
To edit the sales channel of a draft order: |
|
81
|
|
|
82
|
1. Go to the draft order's details page. |
|
83
|
2. In the first section displaying the order's number and region, click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the draft order's row. |
|
84
|
3. Select "Edit sales channel" from the dropdown menu. |
|
85
|
4. In the side window that opens, select the new sales channel from the dropdown. |
|
86
|
5. Click the Save button. |
|
87
|
|
|
88
|
 |
|
89
|
|
|
90
|
--- |
|
91
|
|
|
92
|
## Manage Draft Order's Items |
|
93
|
|
|
94
|
To add, edit, or remove items from a draft order: |
|
95
|
|
|
96
|
1. Go to the draft order's details page. |
|
97
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the Summary section's header. |
|
98
|
3. Select "Edit items" from the dropdown menu. |
|
99
|
4. In the form that opens: |
|
100
|
- To add an item, click the <InlineIcon Icon={Plus} alt="plus" /> button in the "Items" section's header. From the dropdown, you can either choose: |
|
101
|
- **Add items**: Add existing product variants to the draft order. This will open the product variant selection window. The table shows each variant's **Stock** column, which displays the available inventory quantity and number of stock locations, so you can check availability before adding a variant. |
|
102
|
- **Add custom item**: Add a custom item that's only available in this draft order. This will open a form to enter the item's title, price, and quantity. |
|
103
|
- To edit an existing item, click the <InlineIcon Icon={PencilSquare} alt="pencil" /> button in the item's row. This will allow you to change the item's quantity and price. |
|
104
|
- To remove an item, click the <InlineIcon Icon={PencilSquare} alt="pencil" /> button in the item's row, then set the item's quantity to zero. This will remove the item from the draft order. |
|
105
|
5. Once you're done, click the "Save" button. |
|
106
|
|
|
107
|
The items in the Summary section will be updated accordingly. |
|
108
|
|
|
109
|
 |
|
110
|
|
|
111
|
--- |
|
112
|
|
|
113
|
## Manage Draft Order's Promotions |
|
114
|
|
|
115
|
To add or remove promotions applied to the draft order: |
|
116
|
|
|
117
|
1. Go to the draft order's details page. |
|
118
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the Summary section's header. |
|
119
|
3. Select "Edit promotions" from the dropdown menu. |
|
120
|
4. In the side window that opens: |
|
121
|
- To add a promotion, choose it from the dropdown menu. |
|
122
|
- To remove a promotion, click the <InlineIcon Icon={XMark} alt="x-mark" /> icon next to the promotion you want to remove. |
|
123
|
5. Once you're done, click the "Save" button. |
|
124
|
|
|
125
|
The Summary section will be updated accordingly with the discount changes. |
|
126
|
|
|
127
|
 |
|
128
|
|
|
129
|
--- |
|
130
|
|
|
131
|
## Manage Draft Order's Shipping Methods |
|
132
|
|
|
133
|
To manage the shipping methods of a draft order: |
|
134
|
|
|
135
|
1. Go to the draft order's details page. |
|
136
|
2. In the Shipping section, click on the "Add shipping" or "Edit shipping" button. |
|
137
|
3. In the form that opens, you can perform the following steps to manage the shipping methods of every shipping profile: |
|
138
|
- To add a shipping option, click the "Add shipping option" button for the shipping profile. |
|
139
|
- In the form that opens, set the following information: |
|
140
|
- **Location**: Choose the location to ship the items from. This will affect the available shipping options. |
|
141
|
- **Shipping option**: After choosing a location, select a shipping option from that location that will be used to ship the items. |
|
142
|
- **Custom amount**: (optional) If you want to override the price of the shipping option, you can set a custom amount. |
|
143
|
- **Items to ship**: This section only shows you which items this shipping option ships. You cannot edit this section. |
|
144
|
- Once you're done, click the "Add" button. |
|
145
|
- To edit the shipping option of a shipping profile, click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the shipping option's row and choose "Edit shipping option" from the dropdown. You can edit the location, shipping option, and custom amount. |
|
146
|
- To remove a shipping option from the draft order, click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the shipping option's row and choose "Remove shipping option" from the dropdown. |
|
147
|
4. Once you're done managing the shipping methods, click the "Save" button. |
|
148
|
|
|
149
|
The Shipping section will be updated accordingly. |
|
150
|
|
|
151
|
 |
|
152
|
|
|
153
|
--- |
|
154
|
|
|
155
|
## Manage Draft Order's Customer Details |
|
156
|
|
|
157
|
### Transfer Draft Order to Another Customer |
|
158
|
|
|
159
|
If you've associated the draft order with a customer in your store, you can transfer the draft order to another existing customer. |
|
160
|
|
|
161
|
To transfer the draft order to another customer: |
|
162
|
|
|
163
|
1. Go to the draft order's details page. |
|
164
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the Customer section's header. |
|
165
|
3. Choose "Transfer ownership" from the dropdown menu. |
|
166
|
4. In the side window that opens, choose the customer to transfer the draft order to in the "New customer" field. |
|
167
|
5. Once you're done, click the "Save" button. |
|
168
|
|
|
169
|
 |
|
170
|
|
|
171
|
### Edit Email |
|
172
|
|
|
173
|
The draft order has an associated email address that is used to send order updates to the customer. |
|
174
|
|
|
175
|
To edit the email address associated with a draft order: |
|
176
|
|
|
177
|
1. Go to the draft order's details page. |
|
178
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the Customer section's header. |
|
179
|
3. Choose "Edit email" from the dropdown menu. |
|
180
|
4. In the side window that opens, enter the new email address in the "Email" field. |
|
181
|
5. Once you're done, click the "Save" button. |
|
182
|
|
|
183
|
Updates related to the order will be sent to the new email address. |
|
184
|
|
|
185
|
 |
|
186
|
|
|
187
|
--- |
|
188
|
|
|
189
|
## Edit Draft Order's Shipping Address |
|
190
|
|
|
191
|
To edit the shipping address used for a draft order: |
|
192
|
|
|
193
|
1. Go to the draft order's details page. |
|
194
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the Customer section's header. |
|
195
|
3. Choose "Edit shipping address" from the dropdown menu. |
|
196
|
4. In the side window that opens, you can update the shipping address details, including the country, first and last names, company, address lines, city, state, postal code, and phone number. |
|
197
|
5. Once you're done, click the "Save" button. |
|
198
|
|
|
199
|
 |
|
200
|
|
|
201
|
--- |
|
202
|
|
|
203
|
## Edit Draft Order's Billing Address |
|
204
|
|
|
205
|
To edit the billing address used for a draft order: |
|
206
|
|
|
207
|
1. Go to the draft order's details page. |
|
208
|
2. Click on the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon in the Customer section's header. |
|
209
|
3. Choose "Edit billing address" from the dropdown menu. |
|
210
|
4. In the side window that opens, you can update the billing address details, including the country, first and last names, company, address lines, city, state, postal code, and phone number. |
|
211
|
5. Once you're done, click the "Save" button. |
|
212
|
|
|
213
|
 |
|
214
|
|
|
215
|
--- |
|
216
|
|
|
217
|
## Manage Draft Order's Metadata |
|
218
|
|
|
219
|
Metadata is custom data that can be associated with the draft order in key-value pairs. This is usually used by developers for custom integrations or to store additional information about the draft order. |
|
220
|
|
|
221
|
When the draft order is converted to an order, the metadata will be carried over to the order. |
|
222
|
|
|
223
|
To edit the draft order's metadata: |
|
224
|
|
|
225
|
1. Click the <InlineIcon Icon={ArrowUpRightOnBox} alt="arrow" /> icon in the "Metadata" section. |
|
226
|
2. In the side window that opens: |
|
227
|
- Manage the key-value pairs in the table. |
|
228
|
- To add a new row of key-value pairs before or after a row: |
|
229
|
- Hover over the row and click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at its end. |
|
230
|
- Choose "Insert row above" or "Insert row below" from the dropdown. |
|
231
|
- To delete a row of key-value pairs: |
|
232
|
- Hover over the row and click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon at its end. |
|
233
|
- Choose "Delete row" from the dropdown. |
|
234
|
3. Once you're done, click the Save button. |
|
235
|
|
|
236
|
--- |
|
237
|
|
|
238
|
## Convert Draft Order to Regular Order |
|
239
|
|
|
240
|
Once you're done managing the draft order and it is ready to be processed, you can convert it to a regular order. |
|
241
|
|
|
242
|
<Note title="Important"> |
|
243
|
|
|
244
|
This action can't be undone. If you convert the draft order to a regular order by mistake, you can [cancel the order](../../manage/page.mdx#cancel-an-order). |
|
245
|
|
|
246
|
</Note> |
|
247
|
|
|
248
|
To convert the draft order to a regular order: |
|
249
|
|
|
250
|
1. Go to the draft order's details page. |
|
251
|
2. In the Summary section of the draft order's details page, click the "Convert to order" button. |
|
252
|
3. Confirm converting the draft order by clicking the "Confirm" button in the pop-up. |
|
253
|
|
|
254
|
You'll then be redirected to the order's details page. Learn more about it in the [Manage Orders](../../manage/page.mdx) guide. |
|
255
|
|
|
256
|
--- |
|
257
|
|
|
258
|
## Delete Draft Order |
|
259
|
|
|
260
|
<Note type="warning"> |
|
261
|
|
|
262
|
Deleting a draft order is irreversible. |
|
263
|
|
|
264
|
</Note> |
|
265
|
|
|
266
|
To delete a draft order: |
|
267
|
|
|
268
|
1. Go to the draft order's details page. |
|
269
|
2. In the first section displaying the order's number and region, click the <InlineIcon Icon={EllipsisHorizontal} alt="three-dots" /> icon. |
|
270
|
3. Choose "Delete draft order" from the dropdown menu. |