How to Add a Delivery Date Picker to Shopify Thank You Page Without an App
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
- A Shopify plan that allows theme code editing. All standard plans allow this through Online Store → Themes → Edit code.
- Theme access. Duplicate your live theme before editing. Never edit the live theme directly.
- Basic Liquid, HTML, and JavaScript comfort. You'll be writing a snippet and wiring up a form.
- A decision on how you'll store the date. Shopify has no built-in "delivery date" field on orders. You'll use one of:
- Order attributes / cart attributes — only work if set before checkout, so not from the thank-you page.
- Order metafields — require an app or the Admin API to write.
- A webhook or app backend — the reliable route for post-checkout data.
- Optional but recommended: Shopify Flow (free on many plans; check current availability for your plan) or a lightweight automation service to receive the date.
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:
-
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' %}. -
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:
- 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).
- 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).
- That endpoint calls the Shopify Admin API to write the date into an order metafield (for example, namespace
delivery, keypreferred_date). - 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:
- Admin: the metafield appears on the order's detail page under Metafields. You can also add it to the order list view with a custom column if your admin supports it.
- Order confirmation email: edit the notification in Settings → Notifications → Order confirmation and reference the metafield with Liquid, e.g.
{{ order.metafields.delivery.preferred_date }}. Wrap it in a conditional so orders without a date don't show a blank line. - Packing slips and invoices: apps like Order Printer can pull metafields into printed documents.
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:
- Place a test order and confirm the picker appears where expected.
- Select a date and verify it saves (check the order metafield in admin).
- Confirm past dates are blocked by the
minattribute. - Check the confirmation email renders the date correctly.
- Test on mobile — date inputs behave differently across iOS and Android.
- Submit the form twice to make sure you don't create duplicate writes.
- Confirm the endpoint rejects requests without a valid order ID.
| 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:
- You're maintaining a backend. Endpoints break, tokens expire, and Shopify API versions change quarterly. Budget time for upkeep.
- Checkout Extensibility restricts thank-you page editing. Custom Liquid blocks aren't always available there, which is why the separate landing page is often necessary.
- No built-in validation against capacity. If you can only deliver 20 orders a day, you'll need to build that logic yourself.
- Customers can skip the page. If they navigate away, no date is captured.
When an app is the better call:
- You need the date captured reliably at checkout (before payment), not after.
- You want delivery-date rules tied to postcodes, blackout dates, or capacity.
- You don't want to run a server or manage API tokens.
- You need the date to appear automatically in emails, packing slips, and admin without custom Liquid.
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.