Show the earliest delivery date across your store

You can show the earliest delivery date for an order placed now on every page of your store, for example above the header: "Earliest delivery: Wed, Dec 2". If you use a cutoff time, it reads "Order by 12:00 for delivery as early as Wed, Dec 2". Available on the Pro and Plus plans.

Steps

  1. In your admin, go to Online Store > Themes and select Customize on your published theme.
  2. In the theme editor, open App embeds and turn on Earliest delivery date (sitewide).
  3. Choose where it appears (see "Choose the placement" below). If you leave it empty, it appears at the top of the page.
  4. Select Save and check that the date appears in your store.

After changing plans, open the app in your admin once. The app checks your plan then and turns the display on.

Choose the placement

In the embed settings, enter a class name or other selector for the element in Placement (CSS selector), then choose Position relative to the element.

ExamplePositionWhere it appears
.section-headerBeforeJust above the header (Dawn-based themes)
.announcement-barInside, at the endInside the announcement bar
#otodoke-bannerInside, at the startInside a <div id="otodoke-banner"></div> you added to your theme

Positions are "Inside, at the start", "Inside, at the end", "Before", and "After". If the element isn't found, it appears at the top of the page (a warning appears in the browser console). To find a class name, right-click the element in your store and choose Inspect.

Which date is shown

It's the earliest date from your delivery settings only (preparation days, transit days, cutoff time, shipping closed days, and non-delivery days). It matches the date shown on product pages for products without tags or other product settings.

CaseWhat's shown
Before the cutoff time"Order by (cutoff time) for delivery as early as (date)"
After the cutoff time, or no cutoff time"Earliest delivery: (date)"
You use transit days by prefectureThe date uses the fastest destination
Selection type is "Time slot only"Nothing
Customers in countries where the picker isn't shownNothing

The date refreshes every minute, so it changes when the cutoff time or the date passes while the page is open.

Change the text and look

SettingWhat it does
Earliest date text[date] is replaced with the date
Text before the cutoff time[time] is replaced with the cutoff time and [date] with the date
Background color and text colorDefaults to white text on black
AlignmentLeft, center, or right
Font size10 to 20 px

Text you enter only appears in your store's primary language. Other languages use the default text. For custom CSS, use .otodoke-banner (the bar) and .otodoke-banner__text (the text).

Good to know

  • Product preparation days (tags and the metafield) and the "no date selection" tag aren't used. Products that take longer show a later date on their product page and in the cart.
  • If delivery times differ by shipping method (for example, same-day shipping only for express), the date still follows your delivery settings.
  • On the Basic plan, the date doesn't appear in your store even when the embed is on (the theme editor shows a preview).

解決しないときは

インストールから使い始めるまでの流れは、設定ガイドにまとめています。それでも解決しないときは、お気軽にお問い合わせください。

設定ガイドを見るお問い合わせ

Related articles

Back to all articles