> ## 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).

# Print the delivery or pickup date on order documents

Add Calla's selected date, day, and time to an **Invoice** or **Packing slip** in **Shopify Order Printer**.

These steps use Shopify's default templates. Install [Shopify Order Printer](https://apps.shopify.com/shopify-order-printer) first if needed.

## Add the date to your template

1. Go to **Shopify admin → Apps → Order Printer → Templates** and open **Invoice** or **Packing slip**.
2. Copy all the existing code into a text file as a backup.
3. In **Edit code**, find `<h2>Order Details</h2>`. Add a blank line immediately **above** it. The Calla details will appear below the addresses and above the items. If you cannot find this line, contact us with your template before editing.
4. Copy the entire block below and paste it on that blank line. Keep the existing **Order Details** heading.

```
{% 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 = order.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 = order.attributes[date_key] | default: '' %}
    {% if date_value != blank and order_date == blank %}
      {% assign order_date = date_value %}
      {% assign order_time = order.attributes[time_key] | default: '' %}
      {% assign day_value = order.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 order.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 %}
```

5. Check the field names before saving. This block uses **Delivery Date**, **Pickup Date**, and **Local Delivery Date**, with matching **Day** and **Time** names. If your store uses custom names, send us those names and your template so we can adapt the block for you.
6. Click **Preview** to check the layout, then **Save**. Repeat for the other document if needed.

## Check it worked

1. Open an existing scheduled test order in **Shopify admin → Orders**. Note its selected date and time.
2. Click **More actions → Print with Order Printer**. Select the document you edited, then **Print documents**.
3. Confirm the correct date and any saved day/time appear above the items. Check that addresses, items, and invoice totals still appear correctly.
4. Repeat with an order without a Calla date: no Calla date block should appear.

The template preview may use sample data. If the date is missing or incorrect on the actual order, restore your backup and contact us.

## Using a different document?

- **Shopify's built-in Pick list:** custom code is not supported. Use an Invoice or Packing slip for this date block.
- **Shopify's standard packing slip:** this is a separate editor. Do not paste this Order Printer block there.
- **Customized or translated templates:** contact us if the exact insertion line is missing.

## Need help?

Start a live chat and tell us the template name, test order number, and any custom date field 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 [staff notifications](https://autoserve.crisp.help/en/article/show-delivery-or-pickup-date-in-staff-new-order-email-jy9tub/).