# How to add fields to packing slip template?

You can customize the packing slip template so that it can include the fields in there.

Please go to settings -> Shipping and delivery -> edit packing slip template. And the copy and paste this code snippet just below the { % endif %} tag of {{line\_item.sku}}

You can press command+ F (ctrl+F) to search for line\_item.sku to find the location easily.

<figure><img src="https://minimateapps.gitbook.io/~gitbook/image?url=https%3A%2F%2F1110647471-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FDDrLmwkSI3jttYdLoI4Q%252Fuploads%252FdcNYjb3wRfFA8FbozNfu%252Fimage.png%3Falt%3Dmedia%26token%3Df2daa732-5d37-4ed8-b798-fb0bc423d802&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=3a610fc0&#x26;sv=2" alt=""><figcaption></figcaption></figure>

```
//this is the code snippet for adding the inputs from customer to packing slip

{% for property in line_item.properties %}
        {% assign property_first_char = property.first | slice: 0 %}
        {% if property.last != blank and property_first_char != '_' %}
                <span class="line-item-description-line">
                {{ property.first }}: {{ property.last }}
                </span>
        {% endif %}
{% endfor %}
```

#### &#x20; <a href="#how-to-show-custom-fields-on-confirmation-email-to-customer" id="how-to-show-custom-fields-on-confirmation-email-to-customer"></a>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://minimateapps.gitbook.io/customfield/how-to.../how-to-add-fields-to-packing-slip-template.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
