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
- In your admin, go to Online Store > Themes and select Customize on your published theme.
- In the theme editor, open App embeds and turn on Earliest delivery date (sitewide).
- Choose where it appears (see "Choose the placement" below). If you leave it empty, it appears at the top of the page.
- 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.
| Example | Position | Where it appears |
|---|---|---|
.section-header | Before | Just above the header (Dawn-based themes) |
.announcement-bar | Inside, at the end | Inside the announcement bar |
#otodoke-banner | Inside, at the start | Inside 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.
| Case | What'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 prefecture | The date uses the fastest destination |
| Selection type is "Time slot only" | Nothing |
| Customers in countries where the picker isn't shown | Nothing |
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
| Setting | What 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 color | Defaults to white text on black |
| Alignment | Left, center, or right |
| Font size | 10 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).