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 %}