How to Add a Delivery Date Picker to Shopify Order Emails Without an App

2026-11-09 · shipping fulfillment

How to Add a Delivery Date Picker to Shopify Order Emails Without an App

Shopify doesn't ship with a delivery date field, and its notification emails only print the customer's name, address, line items, and totals. If you sell cakes, flowers, furniture, or anything with a promised arrival day, you've probably had a customer reply to their confirmation email asking "when will this actually arrive?" — because the answer was never in the email.

This guide walks through adding a date picker to your product page using Shopify's built-in cart attributes, then surfacing that date in your order emails by editing Liquid templates directly. No third-party app, no monthly fee. You'll need about an hour and a willingness to edit theme code and email templates.

Why the Delivery Date Doesn't Show Up in Shopify Emails by Default

Shopify's order notification templates are Liquid files that pull from a fixed set of order, customer, and line item objects. There is no delivery_date object because Shopify doesn't collect one at checkout. The checkout only captures what's in the cart: products, variants, quantities, prices, shipping address, and any cart attributes or line item properties you've added yourself.

Cart attributes and line item properties are the escape hatch. They're custom key-value pairs that ride along with the order and are stored in Shopify's order data. The catch: they don't automatically appear in emails. You have to add Liquid code to each notification template that references them. That's the whole trick — capture the data, then print it.

What You Need Before You Start (and What This Method Can't Do)

Before touching code, confirm you have:

What this method can't do:

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

Line item properties attach a value to a specific product, which is what you want if different items can have different delivery dates. If your whole order ships together, a cart attribute is simpler — it attaches to the order, not the item.

For a line item property, find your product form. In most themes that's sections/main-product.liquid or a snippet it renders. Add this inside the <form> that posts to /cart/add:

<p class="line-item-property__field">
  <label for="delivery-date-{{ product.id }}">Preferred delivery date</label>
  <input required
    id="delivery-date-{{ product.id }}"
    type="date"
    name="properties[Delivery date]"
    min="{{ 'now' | date: '%Y-%m-%d' }}">
</p>

The name="properties[Delivery date]" is the critical part — that's what tells Shopify to store this as a line item property. The min attribute prevents past dates.

For a cart attribute (one date for the whole order), add it to your cart form in sections/main-cart-items.liquid or sections/cart.liquid:

<div class="cart-attribute__field">
  <label for="delivery-date">Preferred delivery date</label>
  <input id="delivery-date" type="date" name="attributes[Delivery date]"
    value="{{ cart.attributes['Delivery date'] }}">
</div>

Cart attributes on the cart form are saved when the cart updates via the standard cart form submission. Test this after adding it — some themes use AJAX cart updates that need a cart:updated listener to persist the value.

Step 2: Find the Right Notification Template to Edit

Go to Settings → Notifications in Shopify admin. You'll see a list of templates. The ones you care about:

Template When it sends Should include delivery date?
Order confirmation Immediately after checkout Yes — set expectations early
Order edited When you change an order Optional
Shipping confirmation When you fulfill Yes — most useful here
Shipping update When tracking changes Optional
Order canceled On cancellation No

Click Order confirmation first. In the editor, click Edit code in the top right to get the raw Liquid. The template has a {% for line in line_items %} loop that renders each product. That loop is where line item properties live.

Step 3: Add the Delivery Date to the Order Confirmation Email

Inside the line items loop, find where the product title and variant are printed. It looks roughly like:

{% for line in line_items %}
  <p>{{ line.title }}</p>
  {% if line.variant.title != 'Default Title' %}
    <p>{{ line.variant.title }}</p>
  {% endif %}
  ...
{% endfor %}

Add this directly after the variant block:

{% if line.properties['Delivery date'] %}
  <p><strong>Delivery date:</strong> {{ line.properties['Delivery date'] }}</p>
{% endif %}

If you used a cart attribute instead, put this outside the line items loop, near the shipping address block:

{% if attributes['Delivery date'] %}
  <p><strong>Preferred delivery date:</strong> {{ attributes['Delivery date'] }}</p>
{% endif %}

The {% if %} wrapper matters. Without it, every order without a delivery date — including wholesale orders, gift cards, or orders placed before you added the field — prints an empty line.

Save, then preview. Shopify shows a preview with sample data; if the sample order doesn't include your property, the block won't render. That's expected.

Step 4: Repeat for Shipping Confirmation and Other Emails

Copy the same {% if line.properties['Delivery date'] %} block into Shipping confirmation, and optionally Order edited and Shipping update. Each template is independent — edits don't carry over.

One nuance: in the Shipping confirmation template, the line items loop may be inside a table structure with different markup. Match the surrounding HTML so the date doesn't break your email layout. If you're using a cart attribute, the attributes variable is available in all order-related templates.

Testing Your Edits Without Sending Real Orders

Use this sequence:

  1. Create a 100% off discount code (Settings → Discounts), restricted to your own email address if you like.
  2. Place a test order with the discount, choosing a delivery date in the picker.
  3. Check the order in admin — Settings → Orders, or the order detail page. The line item property should appear under the product in the order's line items.
  4. Trigger the email. Order confirmation sends automatically. For shipping confirmation, fulfill the order (you can use "Custom fulfillment" without tracking) and check the email arrives.
  5. Inspect the delivered email, not just the notification's preview. Preview mode in the template editor sometimes shows stale sample data.

If the date doesn't appear in the order at all, the name attribute on your input is wrong. If it appears in the order but not the email, your Liquid variable path is wrong — check whether you used line.properties vs attributes consistently.

When a Free App or Custom Field Beats Hand-Editing Templates

Hand-editing is right when you have a handful of products with delivery dates and a developer-adjacent comfort level. It's the wrong tool in a few situations:

A middle path: keep the native field but write the date to an order note or order metafield via a Shopify Flow automation (free on Basic plans and up), then reference the metafield in your email templates. That gives you a single source of truth without an app subscription.

Conclusion

Adding a delivery date picker to Shopify without an app comes down to two moves: capture the date as a line item property or cart attribute on the product or cart form, then reference that variable in each notification template with a conditional {% if %} block. It's a one-hour job for a developer-comfortable merchant, and it eliminates the most common post-purchase support email. Test with a discounted order before you trust it on live traffic.

FAQ

Will the delivery date show up on packing slips and order printer templates? Yes, if you use Shopify's native packing slip template (Settings → Shipping and delivery → Packing slips), the same line.properties loop applies. Third-party order printer apps vary — check their documentation for how they expose line item properties.

Does editing notification templates affect past orders? No. Templates only affect emails sent after you save. Past orders keep the emails they received, and editing a template won't resend anything.

Can customers change their delivery date after ordering? Not through the email. They'd need to contact you, and you'd update the order manually. If date changes are common in your business, a delivery-scheduling app with customer self-service is worth the subscription.