How to Add a Delivery Date Picker to Shopify Emails

2026-11-26 · shipping fulfillment

How to Add a Delivery Date Picker to Shopify Emails

A customer picks a delivery date at checkout, pays, and then receives an order confirmation with no mention of that date. Two days later they email you asking whether the order will arrive before their event. This happens because Shopify does not store delivery dates natively — the date lives in the order only if you capture it as a line item property or cart attribute, and it appears in emails only if you add the right variable to your notification templates. This guide walks through both halves of that problem, from capturing the date to verifying it renders correctly in every transactional email.

Why the Delivery Date Disappears After Checkout (and Why That Matters)

Shopify's checkout collects addresses, shipping methods, and payment details. It does not have a built-in field for "deliver on or before." Any delivery date picker you add — whether through an app or custom code — writes its value into one of two places:

If the picker writes to neither, or writes to a field your email template doesn't reference, the date is invisible to both you and the customer. The practical cost is real: support tickets asking "when will this arrive," missed delivery windows on time-sensitive orders (gifts, event supplies, perishables), and refund requests you could have avoided with one line of text in a confirmation email.

There's a second, subtler failure mode. Some themes and apps capture the date correctly but only display it on the order status page, not in the notification emails. Customers who never revisit that page — which is most of them — never see it.

What You'll Need Before You Start

Step 1: Capture the Delivery Date as a Line Item Property

Line item properties are the most reliable route because they survive order editing and appear in the admin order view without extra work.

If you're adding the field yourself on the product page, add a date input inside the product form. The critical detail is the name attribute format — Shopify only treats a field as a line item property if it starts with properties[:

<div class="delivery-date-field">
  <label for="delivery-date">Preferred delivery date</label>
  <input
    type="date"
    id="delivery-date"
    name="properties[Delivery date]"
    min=""
    required
  >
</div>

Add a small script to set the min attribute to tomorrow's date so customers can't pick a past date:

<script>
  const field = document.getElementById('delivery-date');
  const tomorrow = new Date();
  tomorrow.setDate(tomorrow.getDate() + 1);
  field.min = tomorrow.toISOString().split('T')[0];
</script>

If you'd rather set one date for the whole cart (common for local delivery or gift orders), use a cart attribute instead: name="attributes[Delivery date]" on the cart page form. Pick one approach and stick with it — mixing the two makes your email templates messy.

If you're using an app, check its documentation for which field type it writes. Most reputable delivery-date apps write to line item properties by default, but confirm before you build email templates around it.

Step 2: Confirm the Date Is Saved to the Order

Before touching any email template, place a test order and verify the data landed.

  1. Add a product to the cart, select a date, and complete checkout.
  2. In Shopify admin, open Orders and click the test order.
  3. Scroll to the line items. The delivery date should appear under the product title as a property (e.g., "Delivery date: 2025-06-14").

If it's missing, the problem is in Step 1 — usually a name attribute that doesn't start with properties[, a field placed outside the <form> element, or an app that writes to a metafield your order view doesn't surface. Fix that before proceeding; email templates can only display data that exists.

Step 3: Insert the Date Variable into Your Order Confirmation Email

Go to Settings → Notifications → Order confirmation and find a sensible spot — typically right after the line items loop or in the order summary block.

Inside the line items loop, render the property like this:

{% for line in line_items %}
  <p>{{ line.title }} × {{ line.quantity }}</p>
  {% for property in line.properties %}
    {% if property.first == 'Delivery date' %}
      <p><strong>Delivery date:</strong> {{ property.last }}</p>
    {% endif %}
  {% endfor %}
{% endfor %}

Two things to watch:

If you used a cart attribute instead, the variable is {{ attributes['Delivery date'] }} and belongs outside the line items loop.

Step 4: Add the Date to Shipping Confirmation and Fulfillment Emails

The order confirmation is the first touchpoint, not the last. Repeat the same Liquid block in:

Copy the exact snippet from Step 3 so the property name matches. In the shipping confirmation, you can make it more useful by pairing the date with tracking:

{% for line in line_items %}
  {% for property in line.properties %}
    {% if property.first == 'Delivery date' %}
      <p>Expected delivery: {{ property.last }}</p>
    {% endif %}
  {% endfor %}
{% endfor %}

Preview each template using the Preview button in the notification editor before saving. Shopify's preview uses sample order data, so if your sample order lacks the property, the preview will look blank — that's expected.

Step 5: Test the Full Flow with a Real Order

Place a genuine test order with a delivery date selected and walk through every email:

Check What to verify Where to look
Order confirmation Date appears under the correct line item, formatted readably Customer inbox
Shipping confirmation Date appears alongside tracking info Customer inbox
Admin order view Property visible and editable Orders → order detail
Blank-date order No empty "Delivery date:" line Place an order without a date
Mobile rendering Date line doesn't break layout Phone email client

Also test an order with multiple line items and different dates if your setup allows per-item selection. Confirm each date appears next to its own product, not lumped together.

Common Problems and How to Fix Them

Conclusion

The delivery date vanishes because Shopify has no native field for it — so you capture it as a line item property or cart attribute, verify it in the admin, and reference the exact property name in every notification template. Once the Liquid snippet is in place across order confirmation, shipping confirmation, and shipping update, customers see their chosen date at every stage. Test with a real order before going live, and the "when will this arrive" tickets drop off on their own.

FAQ

Can I add a delivery date picker without an app? Yes. A date input inside the product form with name="properties[Delivery date]" captures the date on any Shopify plan. You lose app features like blackout dates and capacity limits, but the core capture-and-display flow is free and fully editable.

Why doesn't the date show up in my email preview? Shopify's notification preview uses sample order data that doesn't include your custom property. The preview can look blank even when the template is correct. Place a real test order to confirm the date renders.

Will the delivery date carry over if I edit or duplicate an order? Line item properties persist through order edits and are copied when you duplicate an order in the admin. Cart attributes are order-level and also carry over, but verify after any edit — if you change line items, re-check that the property is still attached to the right product.