How to Add a Delivery Date Picker to Shopify Emails
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:
- Cart attributes: order-level key/value pairs, accessible in Liquid as
attributes. - Line item properties: key/value pairs attached to a specific product line, accessible via
line_item.properties.
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
- A Shopify plan that allows checkout extensibility. Cart attribute and line item property capture works on all plans; checkout UI extensions (for a native-looking date picker at checkout) require Shopify Plus or an app that handles the UI for you. Verify current plan requirements before committing to an approach.
- A way to capture the date. Options include a delivery-date app from the Shopify App Store, a theme customization that adds a date input to the product page (writing to line item properties), or a cart page snippet writing to cart attributes. Check current pricing and reviews for any app — pricing models in this category vary widely.
- Edit access to Shopify notification templates. Go to Settings → Notifications and confirm you can edit the Order confirmation, Shipping confirmation, and Shipping update templates.
- A test payment method so you can place real orders and trigger real emails. Shopify's Bogus Gateway works for this if you're on a plan that supports it; otherwise use a real card and refund yourself.
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.
- Add a product to the cart, select a date, and complete checkout.
- In Shopify admin, open Orders and click the test order.
- 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:
- Property names are case- and space-sensitive.
Delivery dateis not the same asDelivery Date. Match your Step 1nameattribute exactly. - Hide blank values. If a customer somehow checks out without a date, the
{% if %}guard above prevents an empty "Delivery date:" line from appearing.
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:
- Shipping confirmation (
Shipping confirmationtemplate) - Shipping update (
Shipping updatetemplate, if enabled) - Delivery confirmation, if you use it
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
- Date shows as
2025-06-14instead ofJune 14, 2025. Liquid'sdatefilter expects a timestamp, not a string, so{{ property.last | date: "%B %d, %Y" }}often fails silently on raw input strings. Either format the value in your checkout script before submission, or use a small Liquid workaround that splits the string and reassembles it. - Property appears in admin but not in email. Your
{% if %}comparison doesn't match the stored property name exactly. Copy the name character-for-character from the admin order view. - Date missing entirely from the order. The input sits outside the product form, or the
nameattribute lacks theproperties[prefix. - App updates overwrite your template edits. Some apps inject their own email snippets. If your edits vanish after an app update, check whether the app has a "manage emails" setting and disable it, or reapply your snippet.
- Customers pick dates you can't fulfill. Add a note in the field label ("Delivery date — orders placed after 2pm ship next business day") and consider a simple cutoff script that hides same-day options after your dispatch time.
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.