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 %}
<div>
<div>
<div><pre><span><script></span>
<span> Shopify.Checkout.OrderStatus.addContentBox(
<span>`</span><span><h2></span>{{ deliveryMethod }} information<span></h2></span>
<br>
<span><p></span><span><strong></span>{{ deliveryMethod }} date:<span></strong></span> {{ order.attributes.Delivery-Date }}<span></p></span>
{% <span>if</span> order.attributes.Delivery-Time %}
<span><p></span><span><strong></span>{{ deliveryMethod }} time:<span></strong></span> {{ order.attributes.Delivery-Time }}
{% endif %}
{% if order.attributes.Delivery-Comment %}
<span><p></span><span><strong></span>Comments:<span></strong></span> {{ order.attributes.Delivery-Comment }}<span></p></span>
{% endif %}<span>`</span>
)</span>
<span></script></span></pre></div>
</div>
</div>
{% endif %}

