How to Add a Delivery Date Picker to Shopify Thank You Page Without an App

2026-11-11 · shipping fulfillment

How to Add a Delivery Date Picker to Shopify Thank You Page Without an App

Adding a delivery date picker to Shopify's thank you page without an app is possible, but it requires theme code edits and a way to store the customer's selection. Here's the honest version: the picker itself is easy to build with plain HTML and Liquid; the hard part is saving the date to the order, because the thank-you page lives on Shopify's Checkout Extensibility and can't freely write order attributes after checkout completes.

This guide walks through what actually works, where it breaks, and when paying for an app is the smarter move.

Why Add a Delivery Date Picker to the Thank You Page (and What It Can't Do)

A date picker on the thank-you page lets customers choose when they want an order delivered — useful for local delivery, florists, bakeries, gift orders, and anyone who needs to schedule a drop-off around the customer's availability.

What it can do: - Collect a preferred delivery date after purchase, when the customer has already committed. - Reduce "when will my order arrive?" support emails. - Give you a scheduling signal for routes and prep.

What it can't do on its own: - It cannot change shipping rates or block checkout — checkout has already finished. - It cannot reliably write to order attributes or metafields from the thank-you page without a backend (an app, a Function, or a webhook receiver). - It cannot validate against your real inventory or delivery capacity unless you build that logic yourself.

Be clear-eyed about that last point. Many "no-app" tutorials skip the save step, which means the customer picks a date and nobody ever sees it. This guide covers the save step properly.

What You'll Need Before You Start

If you don't have a backend and don't want one, jump to the last section — a free or low-cost app is genuinely the better path.

Step 1: Create a Delivery Date Snippet in Your Theme

In your theme editor, go to Snippets → Add a new snippet and name it delivery-date-picker.liquid.

Paste this starter markup:

<div class="delivery-date-picker" id="delivery-date-picker">
  <label for="delivery-date">Preferred delivery date</label>
  <input
    type="date"
    id="delivery-date"
    name="delivery_date"
    min="{{ 'now' | date: '%Y-%m-%d' }}"
    required
  >
  <p class="delivery-date-note">We'll do our best to deliver on your chosen date.</p>
  <button type="button" id="save-delivery-date">Save delivery date</button>
  <p id="delivery-date-status" role="status"></p>
</div>

Notes on this snippet: - min uses Liquid's date filter to prevent past dates. You can add days with | date: '%s' | plus: 86400 | date: '%Y-%m-%d' if you need a lead time. - The required attribute gives basic browser validation. - The button and status paragraph are placeholders for the JavaScript you'll add in Step 3.

Add minimal styling in your theme's CSS or inline so the picker doesn't clash with your thank-you page layout.

Step 2: Add the Date Picker to the Thank You Page Template

Shopify's post-purchase page is rendered by Checkout Extensibility, not by a normal theme template. You have two realistic options:

  1. Thank-you page customization in the checkout editor. Go to Settings → Checkout → Customize and look for the thank-you page section. You can add blocks here, but custom HTML/Liquid blocks are limited. If your plan and theme support a "Custom Liquid" block on the thank-you page, render your snippet there with {% render 'delivery-date-picker' %}.

  2. A post-purchase landing page. Create a page in Online Store → Pages (for example, /pages/delivery-date), render the snippet in that page's template, and redirect customers there after checkout. This is the most reliable no-app method because you fully control the page.

If you use option 2, add a redirect from the thank-you page using the checkout editor's available redirect or a script that sends customers to your delivery-date page. Test this thoroughly — a broken redirect loses the order context.

Step 3: Save the Customer's Chosen Date to the Order

This is where most no-app attempts fail. The thank-you page cannot write to the order directly. You need a small server endpoint.

A workable pattern:

  1. On your delivery-date page, capture the order number or order ID from the URL (Shopify appends it to the thank-you URL; carry it forward to your page).
  2. Add JavaScript that POSTs the date and order identifier to a form-handling service or your own serverless function (Cloudflare Workers, Vercel, or a Google Apps Script web app all work).
  3. That endpoint calls the Shopify Admin API to write the date into an order metafield (for example, namespace delivery, key preferred_date).
  4. Return a success message to the customer.

Minimal client-side example:

document.getElementById('save-delivery-date').addEventListener('click', async () => {
  const date = document.getElementById('delivery-date').value;
  const status = document.getElementById('delivery-date-status');
  const orderId = new URLSearchParams(location.search).get('order');
  if (!date || !orderId) { status.textContent = 'Missing date or order.'; return; }
  const res = await fetch('https://your-endpoint.example.com/save-date', {
    method: 'POST',
    headers: { 'Content-Type': 'application/json' },
    body: JSON.stringify({ orderId, date })
  });
  status.textContent = res.ok ? 'Saved — thanks!' : 'Something went wrong.';
});

You'll need a Shopify custom app with write_orders (or metafield write) scope for the endpoint to authenticate. Store the access token server-side only.

Step 4: Show the Delivery Date in Order Confirmations and Admin

Once the date is an order metafield:

Test the email with a real test order to confirm the metafield renders.

Step 5: Test the Picker Before You Go Live

Run through this checklist on a duplicated theme or a development store:

Test Expected result Where to check
Past date selection Blocked by browser Picker UI
Valid date save Metafield populated Admin → Order → Metafields
Confirmation email Date shown Test email inbox
Missing order ID Error message Status text on page
Mobile rendering Usable date input iOS/Android device

Limitations, Edge Cases, and When a Free App Makes More Sense

Honest limitations of the no-app approach:

When an app is the better call:

Apps in this space include Delivery Date Pro, Order Delivery Date, and Zapiet (check current pricing and features on the Shopify App Store before committing — plans change). Many offer free tiers for low order volumes. Compare them on: where the picker appears (cart vs. checkout vs. thank-you page), whether they support capacity limits, and whether they write to metafields you can reuse.

Conclusion

Adding a delivery date picker to Shopify's thank-you page without an app is doable if you're comfortable with Liquid, a bit of JavaScript, and a small server endpoint to write the date to an order metafield. The picker itself takes minutes; the save step is the real work. If you'd rather not maintain that plumbing, a delivery-date app will get you there faster and more reliably.

FAQ

Can I add a date picker directly to the thank-you page without any backend? You can display the picker, but you can't save the selection to the order without a backend, an app, or an API call. The thank-you page has no built-in way to write order data after checkout.

Will the date show up in the customer's confirmation email automatically? Only if you store it as an order metafield and reference that metafield in the order confirmation notification template. Without that edit, the email won't include it.

What if a customer skips the delivery-date page? No date is captured. You can mitigate this by emailing a follow-up link to the delivery-date page, or by using an app that collects the date during checkout instead.