How to Add a Delivery Date Picker to Shopify Product Pages Without an App
Adding a delivery or preferred-date picker to your Shopify product page normally means installing an app. If you only need a single date field — "when do you want this delivered?" — you can build it yourself with a theme edit and a line item property. No monthly fee, no app bloat, full control over how it looks.
This guide walks through the whole build: the form field, the styling, getting the date into the cart and order, and testing it before customers see it. It assumes you're on a Shopify Online Store 2.0 theme (Dawn, Refresh, Sense, Craft, or a recent third-party theme). Older vintage themes work too, but the file names differ slightly.
Why Add a Delivery Date Picker Without an App
Delivery date pickers earn their place on product pages when the date genuinely changes the order: fresh flowers, cakes, hampers, personalised gifts, furniture with a booked delivery slot, or anything with a lead time customers need to plan around. Showing a date field tells shoppers you can hit their deadline before they reach checkout — which cuts abandoned carts and "can I get this by Friday?" support emails.
Building it yourself makes sense when:
- You need one date field, not a full scheduling or booking system.
- You want the picker to match your theme's typography and colours exactly.
- You don't want another app script loading on every product page.
- You're comfortable editing a theme file and can keep a backup.
If you need capacity limits, blackout dates, time slots, or per-variant lead times, those are real product logic problems — an app will save you time. More on that at the end.
What You Need Before You Start (Theme Access and a Backup)
You need:
- Theme edit access. In Shopify admin, go to Online Store → Themes. If you're not the store owner, ask for a staff account with theme permissions.
- A backup. On the Themes page, click the … menu next to your live theme and choose Duplicate. Work on the duplicate, preview it, and only publish when it's tested. This is your undo button.
- Knowledge of your product form file. In most 2.0 themes it's
sections/main-product.liquid. The add-to-cart form is usually a<form>element withaction="/cart/add". Older themes often usesections/product-template.liquidorsnippets/product-form.liquid.
Open the duplicate theme in the code editor (… → Edit code) and use the file search to find action="/cart/add". That's your insertion point.
One decision to make now: will the date be required or optional? Required is right for made-to-order and perishable goods. Optional suits general merchandise where most customers don't care. You'll set this in Step 1.
Step 1: Add the Date Picker Field to Your Product Form
Inside the add-to-cart <form>, add a labelled date input. Place it just above the quantity selector or the buy buttons, wherever it reads naturally.
<div class="delivery-date-wrapper">
<label for="delivery-date">Preferred delivery date</label>
<input
type="date"
id="delivery-date"
name="properties[Delivery date]"
min=""
required
>
<p class="delivery-date-note">Orders placed after 2pm are processed the next working day.</p>
</div>
Two things matter here:
name="properties[Delivery date]"is what turns this into a line item property. Shopify stores it against the cart line and carries it through to the order — no app, no metafields, no scripts. Change the text inside the brackets to change the label customers and staff see (e.g.properties[Delivery date]shows as "Delivery date" on the order).requiredblocks add-to-cart until a date is chosen. Remove it if you want the field optional.
If you sell products where a delivery date makes no sense (digital downloads, gift cards), wrap the whole block in a condition so it only renders where it should. This is a Liquid conditional on the product type or tag:
{% unless product.type == 'Digital' or product.tags contains 'no-delivery-date' %}
<!-- date field markup here -->
{% endunless %}
Tag the exceptions in the product admin and the field disappears for them automatically.
Step 2: Style the Picker and Show It Only When It Matters
Native <input type="date"> fields are styled inconsistently across browsers, so give them a little CSS in your theme's stylesheet (assets/base.css in Dawn, or assets/theme.css in many third-party themes):
.delivery-date-wrapper {
margin: 1rem 0;
}
.delivery-date-wrapper label {
display: block;
font-weight: 600;
margin-bottom: 0.4rem;
}
.delivery-date-wrapper input[type="date"] {
width: 100%;
max-width: 320px;
padding: 0.7rem 0.9rem;
border: 1px solid rgba(0,0,0,0.2);
border-radius: 6px;
font: inherit;
}
.delivery-date-note {
font-size: 0.85em;
opacity: 0.75;
margin-top: 0.35rem;
}
Using font: inherit keeps the field consistent with your theme text. Avoid heavy custom JavaScript for the calendar itself — the native picker is faster, accessible, and works on mobile.
Now the "when it matters" part. You want two behaviours:
- Block past dates. Set the
minattribute to today so customers can't pick yesterday. - Hide the field for products that don't need it, using the tag/type condition from Step 1.
For the minimum date, a small inline script near the field does the job without a dependency:
<script>
document.addEventListener('DOMContentLoaded', function () {
var field = document.getElementById('delivery-date');
if (!field) return;
var today = new Date().toISOString().split('T')[0];
field.min = today;
});
</script>
If you want to enforce a lead time — say, no deliveries sooner than three days out — calculate the date three days ahead and use that as min instead. Keep the rule in one place so your product page and your fulfilment process agree.
Step 3: Capture the Chosen Date in the Cart and Order
The good news: once the field uses properties[...], Shopify handles the rest. There's nothing to build for the cart, checkout, or order screen.
- Cart page: line item properties appear under the product title in the cart. In Dawn-based themes this is automatic. If your theme doesn't show them, add a loop in the cart line item snippet that outputs
item.propertiesand skips keys starting with an underscore. - Checkout: properties display in the order summary. This is a Shopify Plus customisation point if you want to rename labels there.
- Order admin: open any order and the date appears under the line item. It also flows into order confirmation emails, packing slips, and the Orders API — useful if you're syncing to a 3PL or a spreadsheet.
If you want the date to appear as a separate column in your Orders list in admin, that needs a metafield and a flow — skip it for now. The line item property is enough for fulfilment.
Step 4: Test the Full Flow Before You Go Live
Run this checklist on the duplicated theme preview before publishing:
- Add a product to cart with a date chosen — confirm the date shows in the cart.
- Try to add to cart with no date (if required) — confirm the browser blocks it.
- Try to pick yesterday — confirm the picker won't allow it.
- Add a digital product or a product tagged
no-delivery-date— confirm the field is hidden. - Complete a test order using Shopify's Bogus Gateway (Settings → Payments → enable test mode) and check the order in admin shows the date.
- Check the field on mobile — the native picker should open a date wheel or calendar.
- Check your order confirmation email template includes line item properties.
Only then publish the duplicate theme. Keep the original as a rollback.
Common Issues and How to Fix Them
| Symptom | Likely cause | Fix |
|---|---|---|
| Date doesn't appear in cart | Theme cart snippet doesn't loop properties | Add item.properties output to the cart line item snippet |
| Field shows on every product | No product condition | Wrap markup in {% unless product.tags contains 'no-delivery-date' %} |
| Customers pick past dates | min not set |
Set min to today via script or Liquid |
| Field disappears after variant change | Theme re-renders the form via JS | Move the field outside the re-rendered block, or re-attach the min script after variant change |
Date shows as _Delivery date with underscore |
Property name starts with _ |
Shopify hides _-prefixed properties from the cart and checkout — drop the underscore |
| Layout breaks on mobile | Fixed widths in CSS | Use width:100% with a max-width |
The underscore issue catches people out. Prefixing a property with _ is a deliberate Shopify feature to hide it from customers — handy for internal notes, wrong for a delivery date.
When a Free App Makes More Sense Than Custom Code
Custom code covers one date field well. It stops being the right tool when you need:
- Blackout dates (no deliveries on Sundays or public holidays).
- Capacity limits — a maximum number of orders per delivery day.
- Time slots as well as dates.
- Different rules per variant — a cake needs 48 hours' notice, a candle doesn't.
- Date-dependent pricing — surcharges for weekend or rush delivery.
In those cases, look at dedicated apps in the Shopify App Store by searching "delivery date picker" or "order delivery date." Compare on: whether they support blackout dates and capacity limits, whether they add a script to every page (check the demo store's page weight), and whether they store the date as a line item property or a metafield. Many offer a free tier for low order volumes — check current pricing on each listing, since plans change. For a store doing a handful of dated orders a week, the custom build above is usually enough; for a bakery shipping hundreds of timed orders, an app pays for itself in avoided mistakes.
Conclusion
A delivery date picker is one of the few product page features you can build properly without an app: a labelled date input with a properties[...] name, a min attribute to block past dates, and a tag-based condition to hide it where it doesn't belong. Back up your theme, edit the duplicate, and test a bogus order before publishing. If your needs grow into blackout dates, capacity limits, or per-variant lead times, that's the point to evaluate an app rather than extend the code.
FAQ
Will the delivery date show up in order confirmation emails and packing slips? Yes. Line item properties flow through to the order, so any email or packing slip template that renders line item properties will include the date. Check your notification templates in Settings → Notifications to confirm the property loop is present.
Can customers change the date after adding to cart? They can edit line item properties from the cart page if your theme supports it (Dawn does). Otherwise they'll need to remove and re-add the item, or contact you. If date changes are common, consider an app that handles cart editing more gracefully.
Does this work with product variants and bundles? The property attaches to the cart line, so it works with variants. For bundles and subscription products, test carefully — some bundle apps rebuild the cart line and can drop properties. Run a test order for each product type you sell before going live.