All guides › Saturday delivery countdown (UK)

A Shopify delivery countdown that gets Saturday delivery right (UK, no app)

Disclosure: I build No-App Sections; this guide was written with AI assistance. The code on this page was written for this guide. It passes Shopify's Theme Check inside Dawn 16.0.0 and automated tests in headless Chrome, run against Dawn's own cart and variant events with mocked store data. It hasn't been run on a live store yet, so try it on a duplicate theme first.

Most delivery-date snippets assume one thing: if you don't dispatch at the weekend, nothing arrives at the weekend. That's wrong for a lot of UK shops. You pack Monday to Friday, but DPD (and others) will deliver on a Saturday if the customer pays for it. A product page that says "Estimated delivery: Monday" on a Friday morning hides a faster option you actually sell. One that says "Saturday" promises something the customer only gets if they choose and pay for it at checkout.

This guide builds a countdown that keeps those apart: the main line gives the date for your standard service, and on days when it makes sense, a second line points to Saturday delivery as a paid upgrade.

Two lists, not one

The block has two settings that look alike but mean different things:

  • dispatch_days: the days you hand parcels to the courier. For most small shops, 'Mon,Tue,Wed,Thu,Fri'.
  • delivery_days: the days your standard service delivers. Leave Saturday out if Saturday is a paid extra. Add it if your standard service really does deliver on Saturdays (some Royal Mail services do).

The Saturday line appears only when all of these are true: saturday_upgrade is on, the next dispatch is a Friday, the following Saturday isn't in your closed dates, and the standard estimate isn't already that Saturday. So it shows on Friday before the cut-off, and on Thursday after the cut-off (when the order will go out on Friday). It never shows on a Monday, when it would only confuse people.

What shoppers see

These are the exact outputs from the headless Chrome tests, with a 2pm cut-off, Europe/London, one day in transit and the default closed dates:

Shopper's clock (UK)Main lineSaturday line
Fri 30 Oct, 11:00Order within 3h 0m for dispatch today. Estimated delivery: Mon 2 NovNeed it sooner? Choose Saturday delivery at checkout for Sat 31 Oct.
Fri 30 Oct, 15:00Order now for dispatch on Mon 2 Nov. Estimated delivery: Tue 3 Nov(hidden)
Thu 29 Oct, 14:00Order now for dispatch tomorrow. Estimated delivery: Mon 2 NovNeed it sooner? Choose Saturday delivery at checkout for Sat 31 Oct.
Thu 29 Oct, 13:59:30Order within the next minute for dispatch today. Estimated delivery: Fri 30 Oct(hidden)
Wed 1 Jul, 13:30 BSTOrder within 30m for dispatch today. Estimated delivery: Thu 2 Jul(hidden)
Sat 31 Oct, 09:00Order now for dispatch on Mon 2 Nov. Estimated delivery: Tue 3 Nov(hidden)
Thu 24 Dec, 10:00Order within 4h 0m for dispatch today. Estimated delivery: Tue 29 Dec(hidden)

The Christmas Eve row is the one to check against your own calendar: Christmas Day and the 28 December bank holiday are closed, Saturday and Sunday aren't delivery days, so the first possible delivery is Tuesday. The countdown runs in the store's time zone, not the shopper's, so a customer abroad sees the same cut-off you do. When a variant is sold out, the whole block is hidden. It's also hidden when the shopper switches to a sold-out size.

The block

{%- comment -%}
  Delivery countdown for the product page, with Saturday delivery handled separately from dispatch days.
  Add as a "Custom Liquid" block in Product information (Dawn 16). Edit the settings to match the services
  you actually sell at checkout: dispatch days and delivery days are separate lists on purpose.
{%- endcomment -%}
{%- liquid
  assign store_timezone = 'Europe/London'
  assign cutoff = '14:00'
  assign dispatch_days = 'Mon,Tue,Wed,Thu,Fri'
  assign delivery_days = 'Mon,Tue,Wed,Thu,Fri'
  assign transit_days = 1
  assign saturday_upgrade = true
  assign closed_dates = '2026-12-25,2026-12-26,2026-12-28,2027-01-01'
  assign v = product.selected_or_first_available_variant
-%}
<delivery-countdown
  class="delivery-countdown"
  data-section="{{ section.id }}"
  data-tz="{{ store_timezone }}"
  data-cutoff="{{ cutoff }}"
  data-dispatch="{{ dispatch_days }}"
  data-delivery="{{ delivery_days }}"
  data-transit="{{ transit_days }}"
  data-saturday-upgrade="{{ saturday_upgrade }}"
  data-closed="{{ closed_dates }}"
  {% if v.available != true %}
    hidden
  {% endif %}
>
  <p class="delivery-countdown__main">Orders placed before {{ cutoff }} on a dispatch day leave the same day.</p>
  <p class="delivery-countdown__sat" hidden></p>
</delivery-countdown>
<style>
  .delivery-countdown p { margin: 0.4rem 0; }
  .delivery-countdown__main strong { font-weight: 600; }
  .delivery-countdown__sat { font-size: 0.9em; opacity: 0.85; }
</style>
<script>
  if (!customElements.get('delivery-countdown')) {
    customElements.define('delivery-countdown', class extends HTMLElement {
      connectedCallback() {
        const d = this.dataset;
        const names = ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'];
        const list = (s) => new Set(s.split(',').map((x) => x.trim()).filter(Boolean));
        this.dispatchDays = list(d.dispatch);
        this.deliveryDays = list(d.delivery);
        this.closed = list(d.closed);
        this.names = names;
        const [h, m] = d.cutoff.split(':').map(Number);
        this.cutoffSec = h * 3600 + (m || 0) * 60;
        this.update();
        this.timer = setInterval(() => this.update(), 15000);
        /* Hide for sold-out or unavailable variants, using Dawn's own variant event (pubsub.js loads deferred). */
        const listen = () => {
          if (typeof subscribe !== 'function' || typeof PUB_SUB_EVENTS === 'undefined') return;
          this.unsub = subscribe(PUB_SUB_EVENTS.variantChange, (e) => {
            if (e.data.sectionId !== d.section) return;
            this.hidden = !(e.data.variant && e.data.variant.available);
          });
        };
        if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', listen, { once: true });
        else listen();
      }
      disconnectedCallback() {
        clearInterval(this.timer);
        if (this.unsub) this.unsub();
      }
      update() {
        const p = Object.fromEntries(
          new Intl.DateTimeFormat('en-GB', { timeZone: this.dataset.tz, year: 'numeric', month: '2-digit', day: '2-digit', hour: '2-digit', minute: '2-digit', second: '2-digit', hourCycle: 'h23' })
            .formatToParts(new Date())
            .map((x) => [x.type, x.value])
        );
        /* Calendar dates in the store's zone, held as UTC midnight so DST never shifts a day. */
        const today = new Date(Date.UTC(+p.year, +p.month - 1, +p.day));
        const nowSec = +p.hour * 3600 + +p.minute * 60 + +p.second;
        const iso = (dt) => dt.toISOString().slice(0, 10);
        const next = (dt) => new Date(dt.getTime() + 86400000);
        const open = (set, dt) => set.has(this.names[dt.getUTCDay()]) && !this.closed.has(iso(dt));
        const fmt = (dt) => new Intl.DateTimeFormat('en-GB', { timeZone: 'UTC', weekday: 'short', day: 'numeric', month: 'short' }).format(dt);

        let dispatch = today;
        let left = null;
        if (open(this.dispatchDays, today) && nowSec < this.cutoffSec) left = this.cutoffSec - nowSec;
        else {
          dispatch = next(today);
          while (!open(this.dispatchDays, dispatch)) dispatch = next(dispatch);
        }
        let delivery = dispatch;
        for (let n = +this.dataset.transit; n > 0; ) {
          delivery = next(delivery);
          if (open(this.deliveryDays, delivery)) n--;
        }

        const main = this.querySelector('.delivery-countdown__main');
        const when = iso(dispatch) === iso(next(today)) ? 'tomorrow' : 'on ' + fmt(dispatch);
        if (left !== null) {
          const hrs = Math.floor(left / 3600);
          const mins = Math.floor((left % 3600) / 60);
          const span = left < 60 ? 'the next minute' : hrs ? hrs + 'h ' + mins + 'm' : mins + 'm';
          main.innerHTML = 'Order within <strong></strong> for dispatch today. Estimated delivery: <strong></strong>';
          main.querySelectorAll('strong')[0].textContent = span;
        } else {
          main.innerHTML = 'Order now for dispatch ' + when + '. Estimated delivery: <strong></strong>';
        }
        main.querySelector('strong:last-child').textContent = fmt(delivery);

        /* Saturday as a paid upgrade: only offered when dispatch is a Friday and that Saturday isn't closed. */
        const sat = this.querySelector('.delivery-countdown__sat');
        const saturday = next(dispatch);
        const offer = this.dataset.saturdayUpgrade === 'true' && saturday.getUTCDay() === 6 && !this.closed.has(iso(saturday)) && iso(saturday) !== iso(delivery);
        sat.hidden = !offer;
        if (offer) sat.textContent = 'Need it sooner? Choose Saturday delivery at checkout for ' + fmt(saturday) + '.';
      }
    });
  }
</script>

Set up Saturday delivery at checkout first

The line on the product page only points to Saturday delivery. The option itself has to exist at checkout, or the line is a broken promise:

  1. Check your courier account. With DPD UK, Saturday delivery is a separate, chargeable service. Confirm it's enabled on your account, and what it costs you, before you advertise it.
  2. In Settings → Shipping and delivery, add a rate to your UK zone with a name that carries the condition, for example "DPD Saturday delivery (order by 2pm Friday)". The product page wording says "Choose Saturday delivery at checkout", so use those words in the rate name too.
  3. Book the Saturday service with the courier for orders that chose that rate. If you print labels through an app or the DPD portal, it's a different service code from next-day.

One limit to know about: as far as I know, Shopify's built-in rates can't be switched on and off by weekday, so a Saturday rate is offered every day of the week. That's why the rate name needs the condition in it, and why you need a plan for a customer who picks it on a Tuesday (usually: deliver next day and refund the difference). Carrier-calculated rates or a shipping app can do this properly. The snippet can't, because the theme doesn't control checkout.

Install it

  1. Open the product template. In Shopify admin go to Online Store → Themes → Customize, then choose Products → Default product from the page selector at the top.
  2. Add a Custom Liquid block. In Product information, click Add block → Custom Liquid and drag it under Buy buttons.
  3. Paste the code. Paste the whole block from above into the Liquid box.
  4. Edit the settings at the top. Set cutoff, dispatch_days, delivery_days and transit_days to match your standard service, and closed_dates to your own closures. Set saturday_upgrade to false if you don't sell Saturday delivery.
  5. Save and test on a Friday morning (or fake one). Save, then check the page before and after your cut-off. To test now, set cutoff a few minutes ahead and watch it roll over.

Limits worth knowing

  • It's an estimate. The tests prove the date maths. They can't prove the van turns up. Keep "Estimated" in the wording.
  • Closed dates are yours to maintain. The list holds the Christmas 2026 and New Year 2027 closures. Add your own holidays and the 2027 bank holidays when you know your plans.
  • Clocks changing. Dates are counted at UTC midnight, so a date can't slip by a day. On the two nights a year the clocks change, the countdown can be an hour out until the shopper's next page load.
  • Highlands, islands and Northern Ireland. Saturday and next-day services often don't cover them. Add a short note under the block, or turn saturday_upgrade off if most of your orders go there.

Prefer settings in the theme editor?

The Estimated delivery section does the main line of this guide with theme editor settings: a live cut-off countdown, dispatch days, handling and transit days, blackout dates (England and Wales bank holidays to the end of 2027 are filled in), and your own message wording. It has a "Carrier delivers on Saturdays" setting for a standard service that delivers on Saturdays, but it does not show a separate paid Saturday upgrade line. For that, keep the snippet above. £12 one-off, for one store, tested on Dawn.

Buy the Estimated delivery section, £12 See pricing

FAQ

Why not just add Saturday to the delivery days?

Then every Friday order shows a Saturday date, including customers who choose standard delivery and get it on Monday. Only add Saturday to delivery_days if your standard service delivers on Saturdays.

Can it show Sunday delivery too?

Add Sun to delivery_days if your standard service delivers on Sundays. There's no separate Sunday upgrade line, because it's rarely sold as an upgrade for small shops.

Can Shopify hide the Saturday rate except on Fridays?

Not with the built-in rate settings, as far as I know. Name the rate with its condition, or use carrier-calculated rates or a shipping app that supports day-of-week rules.

Does the countdown use the shopper's time zone?

No. It uses store_timezone (Europe/London by default), because your cut-off is a time in your warehouse. A shopper in Spain sees the same remaining time as a shopper in Leeds.

What happens when the clocks change?

Times are worked out with the store time zone each time the line updates, so British Summer Time is handled. The only gap is a page left open across the change itself, which corrects on the next load.