> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://autoserve.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).

# Show the delivery or pickup date in the staff New order email

Add the selected Calla date to the email your staff receive for a new order.

## Add the date to the staff email

1. Open a scheduled order in **Shopify admin → Orders**. This block uses **Delivery Date**, **Pickup Date**, or **Local Delivery Date**, with matching **Day** and **Time** names. If your store uses different names, contact us with the order number before editing.
2. Go to **Settings → Notifications → Staff notifications → New order → Edit code**. Save a copy of the template first.
3. In Shopify's default template, go to the bottom of **Email body (HTML)** and find the last `{% endif %}`. Add a blank line immediately **above** it and paste the entire block below. Keep the existing line. If your template has been customized or that line is missing, contact us before editing.
```
{% assign calla_sets = 'DELIVERY|Delivery|Delivery Date|Delivery Day|Delivery Time,PICKUP|Pickup|Pickup Date|Pickup Day|Pickup Time,LOCAL_DELIVERY|Local delivery|Local Delivery Date|Local Delivery Day|Local Delivery Time' | split: ',' %}
{% assign order_kind = attributes['_fulfillment_type'] | default: '' %}
{% assign order_date = '' %}
{% assign order_time = '' %}
{% for calla_set in calla_sets %}
  {% assign keys = calla_set | split: '|' %}
  {% assign kind = keys[0] %}
  {% assign label = keys[1] %}
  {% assign date_key = keys[2] %}
  {% assign day_key = keys[3] %}
  {% assign time_key = keys[4] %}
  {% if order_kind == kind or order_kind == blank %}
    {% assign date_value = attributes[date_key] | default: '' %}
    {% if date_value != blank and order_date == blank %}
      {% assign order_date = date_value %}
      {% assign order_time = attributes[time_key] | default: '' %}
      {% assign day_value = attributes[day_key] | default: '' %}
<div style="margin: 16px 0;">
  <strong>{{ label | escape }} date:</strong> {{ order_date | escape }}<br>
  {% if day_value != blank %}<strong>Day:</strong> {{ day_value | escape }}<br>{% endif %}
  {% if order_time != blank %}<strong>Time:</strong> {{ order_time | escape }}{% endif %}
</div>
    {% endif %}
  {% endif %}
{% endfor %}
{% for calla_line in line_items %}
  {% for calla_set in calla_sets %}
    {% assign keys = calla_set | split: '|' %}
    {% assign kind = keys[0] %}
    {% assign label = keys[1] %}
    {% assign date_key = keys[2] %}
    {% assign day_key = keys[3] %}
    {% assign time_key = keys[4] %}
    {% assign item_date = calla_line.properties[date_key] | default: '' %}
    {% assign item_day = calla_line.properties[day_key] | default: '' %}
    {% assign item_time = calla_line.properties[time_key] | default: '' %}
    {% assign show_item = false %}
    {% if item_date != blank %}
      {% if item_date != order_date or item_time != order_time %}
        {% assign show_item = true %}
      {% elsif order_kind != blank and kind != order_kind %}
        {% assign show_item = true %}
      {% endif %}
    {% endif %}
    {% if show_item %}
<div style="margin: 16px 0;">
  <strong>{{ calla_line.title | escape }} — {{ label | escape }} date:</strong> {{ item_date | escape }}<br>
  {% if item_day != blank %}<strong>Day:</strong> {{ item_day | escape }}<br>{% endif %}
  {% if item_time != blank %}<strong>Time:</strong> {{ item_time | escape }}{% endif %}
</div>
    {% endif %}
  {% endfor %}
{% endfor %}
```
4. Click **Preview** to check the layout, then **Save**.

## Check it worked

A preview may use a sample order. Place a test order with a Calla date and confirm the staff email shows it. Check an order without a Calla date as well; the block should be absent and the rest of the email unchanged.

## Need help?

Start a live chat and include the order number and your attribute names.

For other places to show the date, see [customer emails](https://autoserve.crisp.help/en/article/show-delivery-or-pickup-date-in-customer-emails-19ln6wv/) and [printed documents](https://autoserve.crisp.help/en/article/print-delivery-or-pickup-date-on-order-documents-1pxfrm3/).