> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://checkoutplus.crisp.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Tutorial: How to add Additional Details ( Cart / Order Attributes ) to Draft Orders

|| Note: This Tutorial requires the 'Shopify Flow' App


### Learn How to Add Additional Details ( Cart / Order Attributes ) to Draft Orders

Learn how to enhance you Shopify store's checkout experience by adding attributes to your draft orders. This tutorial will guide you through setting up these additional details for your draft orders so that your checkout customizations and extensions can use these values to preform custom functions. In this example the the attribute being created today will be used to hide the 'Money Order' payment method on draft orders. Let's get started!


### Steps

###### Step 1

###### Open Shopify Flow and Create a new workflow

Creating a new workflow will allow you to create a new trigger that automatically adds the additional details when a new draft order is made.

![Create Workflow in Shopify Flow App](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-1_1r9kuxk.png)
###### Step 2

###### Select the 'Draft Order Created' Trigger

This will be what is used to 'tigger' the start out the workflow

![Select 'Draft Order Created' Trigger](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-2_dx3jxj.png)
###### Step 3

###### Add an Action

We will add an action that will happen when the draft order is created

![Select 'Then' > 'Action'](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-3_r9zmzu.png)
###### Step 4

###### Select 'Send Admin API Request'

This will the action to talk to Shopify and update the Draft Order

![Admin API Request Action](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-4_1apk7re.png)
###### Step 5

###### Add 'draftOrder Update' as the Admin API Action

This will allow you to update the draft order that was just created

![draftOrder Update](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-5_1kwn69t.png)
###### Step 6

###### Add the code to update the draft order attributes

Here is the code section prewritten. Feel free to update the **Key** and **Value** to values that work for you particular store

```
{
  "id": "{{draftOrder.id}}",
  "input": {
    "customAttributes": [
      {
        "key": "is_draft",
        "value": "true"
      }
    ]
  }
}
```

![Draft Update Code](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-6_1vi0ap8.png)
###### Step 7

###### Turn on the workflow and (Optional) Update the workflow name

Turning on the workflow will now enable this code to update all draft orders that are created with this additional value attribue

![Turn on the workflow](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-7_1ps0tfc.png)
###### Step 8

###### Test it out by creating a draft order!

Create a draft order and take a look at the new value in the bottom right of the order in the Shopify Admin dashboard

![Additional details example](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-8_1pzofzy.png)
###### Step 9

###### Use the attribute in the Checkout Plus App

You can now use this new value in the draft order for checkout customizations. Here is an example of the Payment Customization in the Checkout Plus app hiding the 'Money Order' payment method on draft orders!

![Checkout Plus Example](https://storage.crisp.chat/users/helpdesk/website/-/8/9/f/b/89fb1b4d9270d800/draft-order-step-9_z5vk54.png)
Thank you and please contact us if you have any questions or feedback!



