Skip to content
Features / Cart delivery dates

Delivery dates in the cart, right above Check out.

Shoppers saw a date on the product page. Keep it in front of them in the cart drawer and on the cart page, with one range for the whole order next to the checkout button.

Start free trial How it works
Your cart2 items
Cloud sneakers$120.00
Qty 1 Arrives Dec 10 – Dec 14
Hand-poured candle$34.00
Qty 1 · Made to order Arrives Dec 15 – Dec 17
Estimated delivery Dec 10 – Dec 17 Pieces ship separately and may arrive on different days.
Subtotal$154.00
Check out

What you can set

1

Dates under each product

Every product in the cart gets its own line, like “Arrives” and its date range, from your ETA Bird rules.

2

The order’s dates

One range for the whole order sits above the checkout button: from the earliest first date to the latest last date in the cart.

3

Cart drawer and cart page

One switch in the app embed covers both. On the cart page, the Cart delivery dates block lets you place the dates yourself.

4

Your words and colors

Change the labels, the note about separate deliveries, the label and date colors, the size, and add your own CSS.

Why the date belongs in the cart

The cart is the last step before checkout, and it is where a shopper decides whether the order will arrive in time. If the date was on the product page but is gone from the cart, they have to remember it or go back. Putting it next to the checkout button answers the question at the moment they ask it.

It matters most when the cart mixes products that ship at different speeds: a stock item and a made-to-order one, or a gift that has to land before a birthday.

Cart drawer vs cart page

  • Cart drawer (or slide-out cart): opens on top of the page after Add to cart, in most current themes. It is redrawn every time the cart changes, so anything you add to it has to survive that redraw.
  • Cart page (/cart): a full page with the cart items section and a subtotal box. Theme editor blocks and Custom Liquid can go here.

Many stores use both: the drawer for quick adds and the page for shoppers who click “View cart”. Put the date in both, or shoppers who take one route will not see it.

One date for an order with different delivery times

Each product keeps its own range. For the whole order, use the earliest date any product can arrive and the latest date any product can arrive. Say a shopper buys:

  • Cloud sneakers: 1 processing day, 2 to 4 delivery days. Arrives Dec 10 – Dec 14.
  • A hand-poured candle, made to order: 4 processing days, 2 to 4 delivery days. Arrives Dec 15 – Dec 17.

The order line reads “Estimated delivery Dec 10 – Dec 17”: from the sneakers’ first date to the candle’s last date. Quantity changes nothing. Gift cards and products that don’t need shipping are left out. When the products arrive on different days, add a short note, like “Pieces ship separately and may arrive on different days.”

This is the same rule ETA Bird uses for the order’s dates above the checkout button.

Add a delivery date to the Shopify cart with theme code

No app? You can show a rough range with Liquid. First add two product metafields in Settings > Metafields and metaobjects > Products: “Delivery min” (custom.delivery_min) and “Delivery max” (custom.delivery_max), both Integer. Fill them in on each product. Products left empty use 3 to 6 days.

Under each product

In Online Store > Themes > Edit code, open the cart items file (in Dawn and themes built on it, sections/main-cart-items.liquid for the cart page and snippets/cart-drawer.liquid for the drawer). Find the {% for item in cart.items %} loop and paste this under the product title:

{%- assign now_s = 'now' | date: '%s' | plus: 0 -%}
{%- assign lo = item.product.metafields.custom.delivery_min.value | default: 3 -%}
{%- assign hi = item.product.metafields.custom.delivery_max.value | default: 6 -%}
{%- assign from_s = lo | times: 86400 | plus: now_s -%}
{%- assign to_s = hi | times: 86400 | plus: now_s -%}
<p class="cart-eta">Arrives {{ from_s | date: '%b %-d' }} – {{ to_s | date: '%b %-d' }}</p>

The order’s range, above the checkout button

Paste this above the checkout button in the cart footer (in Dawn, sections/main-cart-footer.liquid and the footer part of snippets/cart-drawer.liquid):

{%- assign now_s = 'now' | date: '%s' | plus: 0 -%}
{%- assign order_lo = 999 -%}
{%- assign order_hi = 0 -%}
{%- for item in cart.items -%}
  {%- unless item.requires_shipping -%}{%- continue -%}{%- endunless -%}
  {%- assign lo = item.product.metafields.custom.delivery_min.value | default: 3 -%}
  {%- assign hi = item.product.metafields.custom.delivery_max.value | default: 6 -%}
  {%- if lo < order_lo -%}{%- assign order_lo = lo -%}{%- endif -%}
  {%- if hi > order_hi -%}{%- assign order_hi = hi -%}{%- endif -%}
{%- endfor -%}
{%- if order_hi > 0 -%}
  {%- assign from_s = order_lo | times: 86400 | plus: now_s -%}
  {%- assign to_s = order_hi | times: 86400 | plus: now_s -%}
  <p class="cart-eta">Estimated delivery {{ from_s | date: '%b %-d' }} – {{ to_s | date: '%b %-d' }}</p>
{%- endif -%}

Back up your theme first (the … menu > Duplicate) and check the metafield namespace and keys match yours.

What the code can’t do

  • It counts calendar days, so weekends and your days off count as delivery days.
  • There is no daily cutoff: an order at 11 PM gets the same date as one at 9 AM.
  • “Today” is when Shopify rendered the page, in the store’s time zone, and pages can be cached, so the date can lag.
  • No processing time unless you fold it into the numbers, and no country rules.
  • A theme update can overwrite edited files, so keep a copy.

For working-day dates with a cutoff, days off and rules by product, collection and country, an app does the maths. The product page guide covers the same choice for product pages.

Delivery date not showing in the cart drawer?

  • The app embed or the cart setting is off. In Online Store > Themes > Customize > App embeds, check the app is on and its cart option is ticked. In ETA Bird, cart dates are off until you turn them on.
  • The drawer is redrawn after a change. Code that adds the date once on page load is wiped when a shopper adds or removes a product. Put Liquid in the drawer’s own template, or use a script that runs again after cart changes. ETA Bird re-adds its dates after cart changes.
  • The drawer comes from another app. A cart drawer app draws its own drawer, so theme code doesn’t reach it. Check that app’s settings for a custom text or HTML spot.
  • The product has no date. A product without a rule, a gift card or a product that doesn’t need shipping gets no line.
  • You edited the wrong file. The cart page and the drawer are separate files in most themes. Edit both.

How it works in ETA Bird

  1. Set up your rules as usual: processing days, delivery days, cutoff and days off, by product, collection or the store default.
  2. In the theme editor, open App embeds and tick Show delivery dates in the cart drawer and cart page.
  3. Choose what shows: dates under each product, the order’s dates, or both. Rename “Arrives” and “Estimated delivery”, and pick when the separate-deliveries note shows: when products arrive on different days, whenever there are 2 or more products, or never.
  4. Optional: on the cart page, add the Cart delivery dates block where you want the dates.

The dates come from the same ETA Bird rules you already set, with your cutoff and days off, and refresh when the cart changes.

Up and flying in 3 steps.

1
InstallAdd ETA Bird from the Shopify App Store.
2
Add a rule and a designProcessing days, delivery days, days off and your cutoff. Then pick one of 41 designs.
3
Flip the switchTurn on the ETA Bird app embed in your theme editor. Done.

Questions

How do I show the estimated delivery date in the Shopify cart?

Turn on “Show delivery dates in the cart drawer and cart page” in the ETA Bird app embed in your theme editor. Each product gets its dates and the order’s dates show above the checkout button.

What date does the cart show when products ship at different speeds?

Each product shows its own range. The order’s range runs from the earliest first date to the latest last date, and a note can say the pieces may arrive on different days.

Is this a delivery date picker?

No. ETA Bird shows an estimate worked out from your rules. Shoppers don’t pick a day. If you need a date picker, that is a different kind of app.

Does it work with a cart drawer?

Yes. The dates refresh when products are added, removed or changed in the drawer, without a page reload.

Does it show at checkout?

Yes, on Shopify Plus stores. Three checkout blocks show the same dates under each product, in the order summary and below the shipping methods. See checkout delivery dates.

Read next

Also in ETA Bird

Free for 7 days · No code

Give every product a date.

Set one rule and the delivery date shows up on every product page. It takes a few minutes.

★★★★★ 5.0 on the Shopify App Store · $4.99 a month after the trial
Dec
14
Arrives Monday
Order within 11:58:41
Arrives by Mon, Dec 14