Delivery portals

The Delivery, Returned parcel and Undelivered parcel portals, and the values they read.

Delivery portal#

At /delivery: answering a failed delivery attempt. The three portals share one default and read the same values; page.Kind says which one renders. Surface delivery.

Returned parcel portal#

At /returned-shipment: choosing what happens to a parcel on its way back or already back. The three portals share one default and read the same values; page.Kind says which one renders. Surface delivery_returned.

Undelivered parcel portal#

At /undelivered: choosing what happens to a parcel lost or damaged on its way. The three portals share one default and read the same values; page.Kind says which one renders. Surface delivery_undelivered.

States#

The step the page is on is page.State. The editor previews each state with sample data.

State

The page

lookup

Find an order by its number and email or phone.

code

Enter the one-time code sent to the email or phone.

orders

A signed-in customer's orders.

order

The order, with what the customer can answer.

What the code must keep#

The lookup, code, orders and answer controls, <section class="delivery-controls" data-delivery-controls>. Keep it exactly as the default has it.

Keep {{ page.BrandingStyles }}, {{ page.PreviewNotice }} and {{ page.Heading }}, and the document's </head> and </body>. See the rules for all store pages.

Values#

Every value the page's code can read. [] marks a list item: read it inside {% for item in list %} as item.Name. A value that is empty in a particular case prints nothing; test it with {% if %} first.

Value

Type

Description

page.AnotherLabel

Text

The label of the link to find another order.

page.AnotherURL

URL

Opens the order lookup again, to find another order.

page.BrandingStyles

HTML

A <style> element with the page appearance: colours, font and corners as --co-* CSS variables. Required.

page.BrandName

Text

The brand name from the checkout appearance, or the store name when none is set.

page.Code

Object

The one-time code form (code state). Platform-owned.

page.Code.Action

URL

Where the form posts.

page.Code.CodeLabel

Text

Label of the code field.

page.Code.Contact

Text

The email or phone number the code was sent to.

page.Code.CSRF

Text

The form's security token.

page.Code.OrderNumber

Text

The order number being verified.

page.Code.Submit

Text

Label of the button.

page.Dir

Text

ltr or rtl, the writing direction of the language. Set it as the document's dir.

page.Error

Text

What went wrong with the last step, in the shopper's language. Empty otherwise.

page.Heading

Text

The page heading. Required.

page.Intro

Text

The text under the heading. Empty when the current step has none.

page.Kind

Text

delivery, returned or undelivered: which of the three portals this is.

page.Locale

Text

The shopper's language as a locale code, such as en or de-CH. Set it as the document's lang.

page.LogoURL

URL

The checkout appearance logo. Empty when the store has no logo.

page.Lookup

Object

The order lookup form (lookup state). Platform-owned.

page.Lookup.Action

URL

Where the form posts.

page.Lookup.Contact

Text

The email or phone number the shopper entered.

page.Lookup.ContactLabel

Text

Label of the email or phone field.

page.Lookup.CSRF

Text

The form's security token.

page.Lookup.OrderLabel

Text

Label of the order number field.

page.Lookup.OrderNumber

Text

The order number the shopper entered.

page.Lookup.Submit

Text

Label of the button.

page.Message

Text

A confirmation of what just happened, such as a code being sent. Empty otherwise.

page.Order

Object

The order found (order state).

page.Order.Address1Label

Text

page.Order.Address2Label

Text

page.Order.CancelLabel

Text

page.Order.Change

Text

page.Order.ChoiceLabel

Text

page.Order.COD

Object

Confirming a cash on delivery order, when the store asked for it.

page.Order.COD.Action

URL

page.Order.COD.Answer

Text

The answer given, worded.

page.Order.COD.Cancel

Text

page.Order.COD.Confirm

Text

page.Order.COD.ConfirmBy

Text

The deadline, worded.

page.Order.COD.Heading

Text

page.Order.COD.Note

Text

page.Order.COD.Open

Boolean

True while the customer can answer.

page.Order.COD.Show

Boolean

page.Order.Continue

Text

page.Order.CSRF

Text

The forms' security token.

page.Order.DateLabel

Text

page.Order.Issues

List

Failed delivery attempts the customer can answer.

page.Order.Issues[].Action

URL

Where the answer posts.

page.Order.Issues[].Address1

Text

page.Order.Issues[].Address2

Text

page.Order.Issues[].Answer

Text

The customer's answer, worded, once given.

page.Order.Issues[].AnswerBy

Text

The deadline to answer, worded.

page.Order.Issues[].CanAddress

Boolean

True when the courier takes new address lines.

page.Order.Issues[].CanNote

Boolean

True when the courier takes a note.

page.Order.Issues[].CanPhone

Boolean

True when the courier takes a new phone number.

page.Order.Issues[].CanReattempt

Boolean

page.Order.Issues[].CanReturn

Boolean

True when the customer can ask to send it back.

page.Order.Issues[].Choice

Text

The answer chosen: such as reattempt or cancel.

page.Order.Issues[].Dates

List

The days the courier can try again.

page.Order.Issues[].Dates[].Label

Text

The date, worded.

page.Order.Issues[].Dates[].Value

Text

The date, YYYY-MM-DD.

page.Order.Issues[].Failed

Text

How many attempts failed, worded.

page.Order.Issues[].Forwarding

Text

Where the answer stands with the courier.

page.Order.Issues[].Heading

Text

The shipment, worded with its number and tracking number.

page.Order.Issues[].ID

Text

page.Order.Issues[].Items

List

The items in the shipment, worded one per line.

page.Order.Issues[].Note

Text

A note for the courier.

page.Order.Issues[].Open

Boolean

True while the customer can answer.

page.Order.Issues[].Phone

Text

page.Order.Issues[].ReattemptOn

Text

The chosen day to try again.

page.Order.Issues[].ShipmentItems

List

The items in the shipment.

page.Order.Issues[].ShipmentItems[].ImageURL

URL

page.Order.Issues[].ShipmentItems[].Quantity

Number

page.Order.Issues[].ShipmentItems[].Title

Text

page.Order.Issues[].ShipmentItems[].VariantTitle

Text

page.Order.Issues[].TrackingURL

URL

page.Order.Issues[].TrackParcelLabel

Text

page.Order.Issues[].Waiting

Boolean

True while the answer waits on the courier.

page.Order.Label

Text

The order, worded with its number.

page.Order.LineMax

Number

Most characters in an address line.

page.Order.NoteLabel

Text

page.Order.NoteMax

Number

Most characters in a note.

page.Order.Nothing

Text

Shown when nothing on the order waits for the customer.

page.Order.PhoneLabel

Text

page.Order.PhoneMax

Number

Most characters in a phone number.

page.Order.Place

Text

page.Order.ReattemptLabel

Text

page.Order.Returned

List

Parcels coming back or back, or lost or damaged on the way, that the customer chooses for.

page.Order.Returned[].Action

URL

Where the choice posts.

page.Order.Returned[].Choices

List

What the customer can choose: send it again, or a refund to a method.

page.Order.Returned[].Choices[].Choice

Text

reship or refund.

page.Order.Returned[].Choices[].Label

Text

page.Order.Returned[].Choices[].Method

Text

The refund method, for a refund.

page.Order.Returned[].DecideBy

Text

The deadline to choose, worded.

page.Order.Returned[].Heading

Text

The shipment, worded.

page.Order.Returned[].ID

Text

page.Order.Returned[].Items

List

The items, worded one per line.

page.Order.Returned[].ShipmentItems

List

The items.

page.Order.Returned[].ShipmentItems[].ImageURL

URL

page.Order.Returned[].ShipmentItems[].Quantity

Number

page.Order.Returned[].ShipmentItems[].Title

Text

page.Order.Returned[].ShipmentItems[].VariantTitle

Text

page.Order.Returned[].Status

Text

Where the parcel is, worded.

page.Order.StatusLabel

Text

page.Order.StatusURL

URL

The order status page.

page.Order.Submit

Text

page.Order.Summary

Object

The order's items and totals, as on the order status page. Empty when there are no items.

page.Order.Summary.DutyNote

Text

Who pays import duties, when the order has any.

page.Order.Summary.Heading

Text

Heading of the summary.

page.Order.Summary.Items

List

The order lines.

page.Order.Summary.Items[].ComparePrice

Text

The price before a discount, to strike through. Empty without one.

page.Order.Summary.Items[].DiscountTotal

Text

The line's discount, formatted. Empty without one.

page.Order.Summary.Items[].ImageURL

URL

The line image.

page.Order.Summary.Items[].LineTotal

Text

The line total, formatted in the order currency.

page.Order.Summary.Items[].Properties

List

Personalization and other line properties the shopper entered.

page.Order.Summary.Items[].Properties[].Name

Text

The property name.

page.Order.Summary.Items[].Properties[].Value

Text

The property value.

page.Order.Summary.Items[].Quantity

Number

The quantity.

page.Order.Summary.Items[].TaxLabel

Text

The tax label of the line.

page.Order.Summary.Items[].TaxTotal

Text

The line's tax, formatted.

page.Order.Summary.Items[].Title

Text

The product title.

page.Order.Summary.Items[].UnitPrice

Text

The price of one, worded (such as "₹599.40 each"). Empty when the store does not show prices per item.

page.Order.Summary.Items[].VariantTitle

Text

The variant title.

page.Order.Summary.PostTotalRows

List

Rows under the total, such as amounts paid and refunded.

page.Order.Summary.PostTotalRows[].Label

Text

The row label.

page.Order.Summary.PostTotalRows[].Value

Text

The amount, formatted.

page.Order.Summary.PriceRows

List

The rows above the total: subtotal, discounts, shipping, fees, tax and duties.

page.Order.Summary.PriceRows[].CustomerText

Text

A checkout fee's text the shopper entered, such as a gift message.

page.Order.Summary.PriceRows[].Indented

Boolean

True for a row that belongs to the one above it.

page.Order.Summary.PriceRows[].Label

Text

The row label.

page.Order.Summary.PriceRows[].Note

Text

A note under the row, such as how a fee is worked out.

page.Order.Summary.PriceRows[].Value

Text

The amount, formatted.

page.Order.Summary.TotalLabel

Text

Label of the total.

page.Order.Summary.TotalValue

Text

The order total, formatted.

page.Orders

Object

A signed-in customer's orders (orders state).

page.Orders.Empty

Text

Shown when the customer has no order this page can help with.

page.Orders.Heading

Text

Heading of the order list.

page.Orders.Items

List

The orders.

page.Orders.Items[].Date

Text

The order date, in the shopper's language.

page.Orders.Items[].Label

Text

The order, worded with its number.

page.Orders.Items[].URL

URL

Opens the order on this page.

page.Orders.Open

Text

Label of the link that opens an order.

page.Portal

Object

The brand half of the page.

page.Portal.BackgroundSrcset

Text

A srcset of the background image in several widths.

page.Portal.BackgroundURL

URL

The order status page's background image, when the store set one. Empty otherwise.

page.Portal.Links

List

The store's checkout footer policies, as links.

page.Portal.Links[].Label

Text

The policy title.

page.Portal.Links[].URL

URL

The policy page.

page.Portal.Style

Text

Inline CSS custom properties for the brand half: --portal-logo (the checkout logo width) and --portal-dim (how much the background image is dimmed). Put it in a style attribute.

page.PortalStyles

HTML

A <style> element with the portal layout: the brand on one half and the page on the other on wide screens, the brand above the page on phones.

page.PreviewNotice

Text

In the editor preview, a notice that the page shows sample data. Empty on the storefront. Required.

page.RootURL

URL

The storefront home page (/). # in the editor preview.

page.State

Text

The step the page is on. See the states above.