Product page and cart
Add Delivery Date's blocks to your Shopify product page and cart page in the theme editor: what buyers see, the countdown, variants and block settings.
Two theme blocks show the date in your online store:
- Delivery date
- On the product page, for the selected variant.
- Delivery date (cart)
- On the cart page, one date for everything in the cart.
Both need an Online Store 2.0 theme. Vintage themes can't add app blocks, and the cart drawer isn't supported, only the cart page.
Adding the blocks
- 1
Open the theme editor
Select Add the block to your theme on the Overview or on the Display page. The theme editor opens on a product page of your current theme.
- 2
Add the product page block
In the section where the date should appear, add a block, choose Delivery date from the apps and move it into place.
- 3
Add the cart block
Switch to your cart page and add Delivery date (cart) the same way.
- 4
Save
Select Save in the theme editor.
What buyers see
The block shows the date in your wording, with the dates in bold, and a second line below it:
| When | Second line, in English |
|---|---|
| Every product leaves today and the countdown is on | Order within 3h 12m to ship today |
| At any other time | Ships Tue, Aug 4 |
The block uses your storefront's language and the country your store is set to for the buyer, for example through your country selector. If there's no date to show, the block stays hidden. See Display and Wording.
Variants
The block starts with the selected variant, or the first available one. When the buyer picks another variant, the block shows that variant's date. Products that don't need shipping, such as digital products, show no block.
The countdown
The time left is worked out when the page loads. A minute after the cut-off, the block asks again and shows the next date, so the countdown disappears on its own once the cut-off passes.
The cart
The cart block shows one date for every product in the cart that needs shipping. The product that leaves last and the longest delivery time set it. See A cart with several products. An empty cart, or one with only products that don't need shipping, shows no block.
Block settings
Select the block in the theme editor to change how it looks. The dates and the wording come from the app.
| Group | Settings |
|---|---|
| Layout | Alignment, left or centred, plus Space above and Space below |
| Box | Show as a box, with Background, Background gradient, Border colour, Border width and Corner radius. On in the cart, off on the product page. |
| Icon | Custom icon, Icon position, Icon size and Space between icon and text. There's no icon until you pick one. |
| Text | Text size, Date weight and Accent colour |
In the theme editor
When the block has nothing to show, the theme editor shows why instead of hiding it:
| Hint | Meaning |
|---|---|
| No delivery date — this product does not need shipping. | The selected variant doesn't need shipping. |
| No delivery date yet — the cart is empty or nothing in it needs shipping. | There's nothing in the cart to ship. |
| No date to show yet. In the Delivery Date app, check that dates are switched on and a plan is chosen. | See Troubleshooting. |