/
Order status page
Order status page
To make the selected date/time options and comments show up on the order status page, you should go to Settings > Checkout and add the following code snippet to the “Additional scripts” field:
{% if order.attributes.Delivery-Date %}
{% assign deliveryMethod = "Store pickup" %}
{% if order.attributes.Delivery-Method contains "localDelivery" %}
{% assign deliveryMethod = "Local delivery" %}
{% endif %}
<script>
Shopify.Checkout.OrderStatus.addContentBox(
`<h2>{{ deliveryMethod }} information</h2>
<br>
<p><strong>{{ deliveryMethod }} date:</strong> {{ order.attributes.Delivery-Date }}</p>
{% if order.attributes.Delivery-Time %}
<p><strong>{{ deliveryMethod }} time:</strong> {{ order.attributes.Delivery-Time }}
{% endif %}
{% if order.attributes.Delivery-Comment %}
<p><strong>Comments:</strong> {{ order.attributes.Delivery-Comment }}</p>
{% endif %}`
)
</script>
{% endif %}
, multiple selections available,
Related content
Order history in customer's account
Order history in customer's account
More like this
Managing orders
Managing orders
More like this
Order confirmation emails
Order confirmation emails
More like this
New Order emails sent to staff
New Order emails sent to staff
More like this
Setting up pickup and delivery
Setting up pickup and delivery
More like this
Data is missing from the Order backend admin
Data is missing from the Order backend admin
More like this