How to Add a Shipping Cutoff Timer to Shopify Order Confirmation
Customers who just paid are the most motivated people in your funnel — and the most likely to open a support ticket asking "when will this ship?" A shipping cutoff timer on the Shopify order confirmation page answers that question before they ask it, in the exact moment they're looking for reassurance. This guide shows you how to add one with a theme edit, using Liquid and a small amount of JavaScript, and covers the edge cases (timezones, weekends, holidays) that break naive implementations.
Why a Shipping Cutoff Timer Beats a Generic "Ships in 1–2 Days" Line
"Ships in 1–2 days" is a promise with no deadline. It tells the customer nothing about their order. A timer does three things a static line can't:
- It anchors a specific date. "Order within 3h 12m and it ships today" converts a vague expectation into a concrete one, which is what customers actually want after checkout.
- It creates honest urgency at the right moment. The customer has already paid, so this isn't a pressure tactic — it's logistics information. But it does nudge them to double-check their address and respond to any follow-up emails quickly, because they know the clock is running.
- It reduces "where is my order" tickets. Most WISMO contacts come from customers who don't know whether their order made the day's cut. A visible cutoff on the confirmation page and in the confirmation email preempts a large share of them.
The tradeoff: a timer is a promise you have to keep. If you display "ships today" and then miss the cutoff because of a warehouse backlog, you've made things worse than saying nothing. Only add a timer if your fulfillment process reliably honors the cutoff you display.
Where the Order Confirmation Page Actually Lives in Your Theme
In a Shopify theme, the page a customer sees immediately after checkout is not a normal page template. It's templates/customers/order.liquid — the order status page, which is also what the customer reaches from the "View your order" link in the confirmation email.
A few things to know before you edit:
- The post-checkout page itself is hosted by Shopify and not theme-editable. The
checkout.liquidfile was deprecated and removed for most stores (Shopify Plus stores had a longer runway; check your plan's current requirements). What you can edit istemplates/customers/order.liquid, which is where the "thank you" experience effectively continues. Many merchants add a welcome message or timer here and also link to it prominently. - The confirmation email is edited separately under Settings → Notifications → Order confirmation. You can add a static line there ("Orders placed before 2pm ET ship same day"), but email clients strip JavaScript, so a live countdown has to live on the order status page.
- Theme structure varies. In Online Store 2.0 themes (Dawn, Refresh, Craft, Sense and most current paid themes), the order template is a JSON file that references sections. In older themes it's a single Liquid file. Open your theme's code editor under Online Store → Themes → ⋯ → Edit code and look for
templates/customers/order.liquid.
If you're on a newer theme and the file is JSON, you'll typically add a section or a snippet and reference it from the JSON template — or edit the section that renders the order status content.
Build the Timer Logic: Cutoff Time, Timezone, and Next Ship Date
The countdown itself is simple; the correctness is in the date math. You need three inputs:
- Cutoff time — e.g., 14:00.
- Store timezone — the timezone your warehouse actually works in, not the customer's. Shopify exposes this as
shop.timezonein Liquid (an IANA name likeAmerica/New_York). Displaying a countdown in the customer's local time while the cutoff is in warehouse time is a common source of wrong promises; the safest approach is to compute everything in store time and label it clearly ("2:00 PM ET"). - Business days — which days you actually ship. Saturday and Sunday usually don't count, and holidays need handling.
The logic flow: take the current time in store timezone, compare it to today's cutoff, and if it's past cutoff (or today isn't a shipping day), roll forward to the next shipping day.
Here's a compact Liquid + JavaScript approach. Put the Liquid values in data attributes so the JS can read them:
{%- assign cutoff_hour = 14 -%}
<div id="ship-timer"
data-tz="{{ shop.timezone }}"
data-cutoff-hour="{{ cutoff_hour }}"
data-cutoff-minute="0"
data-ship-days="1,2,3,4,5">
<span id="ship-timer-text">Calculating next ship date…</span>
</div>
Then the script:
(function () {
var el = document.getElementById('ship-timer');
if (!el) return;
var tz = el.dataset.tz;
var cutoffH = parseInt(el.dataset.cutoffHour, 10);
var cutoffM = parseInt(el.dataset.cutoffMinute, 10);
var shipDays = el.dataset.shipDays.split(',').map(Number); // 0=Sun
function nowInTz() {
// Returns a Date whose local getters reflect store timezone
var s = new Date().toLocaleString('en-US', { timeZone: tz });
return new Date(s);
}
function nextShipDate(from) {
var d = new Date(from);
for (var i = 0; i < 14; i++) {
var isShipDay = shipDays.indexOf(d.getDay()) !== -1;
var beforeCutoff = d.getHours() < cutoffH ||
(d.getHours() === cutoffH && d.getMinutes() < cutoffM);
if (isShipDay && beforeCutoff) return d;
d.setDate(d.getDate() + 1);
d.setHours(0, 0, 0, 0);
}
return d;
}
function render() {
var now = nowInTz();
var ship = nextShipDate(now);
var ms = ship - now;
var h = Math.floor(ms / 3.6e6);
var m = Math.floor((ms % 3.6e6) / 6e4);
var label = ship.toLocaleDateString('en-US',
{ weekday: 'long', month: 'short', day: 'numeric' });
document.getElementById('ship-timer-text').innerHTML =
'Order ships <strong>' + label + '</strong> — ' +
h + 'h ' + m + 'm left to make today’s cutoff.';
}
render();
setInterval(render, 60000);
})();
A few deliberate choices: the interval is 60 seconds (a minute-level countdown doesn't need per-second updates and this saves battery on mobile), the loop caps at 14 days so a bad config can't spin forever, and everything is computed in store time. If you want the timer to hide once the order is clearly past cutoff for the day, add a conditional around the render.
Add the Timer to the Order Confirmation Template (Code Walkthrough)
- Back up your theme. Duplicate it under Online Store → Themes → ⋯ → Duplicate before touching any file. This takes ten seconds and saves hours.
- Open
templates/customers/order.liquid(or the section that renders the order status content in OS 2.0 themes). - Find the order summary block — usually a heading like "Order {{ order.name }}" or the line-items table. Insert the timer markup just above or below it, inside the main content container.
- Paste the Liquid block and the script. For the script, wrap it in
<script>tags at the end of the same file, or add it toassets/theme.jsif you prefer to keep JS centralized. Inline is fine for a single-purpose snippet. - Guard against empty orders. The order status template renders for all orders, including ones with no shipping. Wrap the timer in
{% if order.requires_shipping %}so digital-only orders don't show a shipping promise. - Save and preview using the theme preview, then place a real test order.
If you'd rather not maintain Liquid, apps like Order Status Page customizers and post-purchase upsell tools (for example, Rebuy, AfterSell, or the Shopify-native checkout extensibility features) can inject content into the post-purchase flow. Check current pricing and Shopify's checkout extensibility requirements before committing — the capabilities here change as Shopify migrates checkout customization.
Style It to Match Your Brand Without Breaking Mobile
The timer should look like part of your store, not a widget bolted on. Practical rules:
- Use your theme's CSS variables (
--color-foreground,--font-body-family, etc. in Dawn-based themes) rather than hardcoding colors, so dark mode and brand updates carry through. - Keep it to one or two lines on a 375px screen. Long date strings ("Wednesday, September 17th") wrap badly. Test with the longest weekday/month combination.
- Don't animate the number every second. A pulsing or ticking countdown reads as a discount-timer gimmick and undercuts the "this is logistics info" framing.
- Give it a subtle background — a light tinted box with your border radius — so it reads as a callout rather than body text.
- Respect reduced motion if you add any transition:
@media (prefers-reduced-motion: reduce) { ... }.
Test It: Preview Orders, Timezone Edge Cases, and Weekend Cutoffs
Shipping timers fail in the boring cases. Work through this checklist before you ship the change:
- Place a real test order (use Shopify's Bogus Gateway in test mode, or a 100%-off discount code) and open the order status page from the confirmation email.
- Check the cutoff boundary. Set your system clock or temporarily set
cutoff_hourto the current hour and confirm the timer flips from "today" to "next ship day" at the right minute. - Test a timezone mismatch. If your store timezone is
America/New_Yorkand you're viewing fromEurope/London, confirm the date shown matches warehouse reality, not your laptop's clock. - Test a Friday-after-cutoff order. It should roll to Monday, not Saturday.
- Test a holiday. The script above doesn't know about holidays — you'll need to either add a hardcoded exclusion list or accept that the timer will be wrong on holidays. Decide which, and note it in your SOP.
- Check the email. Confirm the static line in Settings → Notifications → Order confirmation matches what the timer says.
| Scenario | Expected result | Common bug |
|---|---|---|
| Order at 10:00 AM, cutoff 2 PM, weekday | Ships today | — |
| Order at 3:00 PM, cutoff 2 PM, weekday | Ships next business day | Rolls to Saturday |
| Order Friday 3:00 PM | Ships Monday | Shows Saturday |
| Order Saturday | Ships Monday | Shows Sunday |
| Customer in different timezone | Date matches store time | Uses local browser time |
| Digital-only order | No timer shown | Timer renders anyway |
When a Theme Edit Isn't Enough (and What to Do Instead)
The theme edit covers the order status page, but the biggest WISMO driver is the confirmation email and the account order history — neither supports live JavaScript. If you need the cutoff shown consistently across email, account pages, and the status page, your options are:
- A post-purchase app that injects the timer into the post-purchase flow and can sync messaging to emails. Check current pricing and whether the app supports your checkout type.
- A fulfillment/delivery-date app (Route, ShipInsure-adjacent tools, or delivery-date pickers like Delivery Timer) that bundles cutoff logic with carrier estimates. These are worth it if you also want delivery-date promises, not just ship-date.
- Shopify Flow + a static email line if you only need the email side — set the cutoff text manually and update it when your schedule changes.
For most small stores shipping from one location on a fixed schedule, the Liquid snippet above is enough. Reach for an app when you have multiple warehouses, variable per-product lead times, or need the promise to appear in email.
Conclusion
A shipping cutoff timer on the order confirmation page turns a vague shipping promise into a specific date, which is exactly what a customer wants thirty seconds after paying. The theme edit is small — one Liquid block, one script, a backup — but the payoff is fewer WISMO tickets and a more confident post-purchase experience. Build it store-time, test the Friday-afternoon and weekend cases, and only promise a cutoff your warehouse actually keeps.
FAQ
Can I add a live countdown to the Shopify order confirmation email? No — email clients strip JavaScript, so a live countdown won't run. You can add a static line like "Orders placed before 2 PM ET ship same day" under Settings → Notifications → Order confirmation, and link to the order status page where the live timer runs.
Will this work on any Shopify theme?
The logic works on any theme, but the file you edit varies. OS 2.0 themes (Dawn and most current themes) use JSON templates that reference sections; older themes use a single templates/customers/order.liquid. Back up your theme and locate the order status template before editing.
How do I handle holidays in the timer?
The script doesn't detect holidays by default. Add a hardcoded array of excluded dates and check it in the nextShipDate loop, or accept that the timer will be inaccurate on holidays and update your email copy manually. If you ship from multiple locations with different schedules, a dedicated delivery-date app is usually the better fit.