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:

img 40.png

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

icon.png.webp

@2008-2024 Mageworx

Our products

Product bundles

Advanced product options

UpCharge: Surcharges & Fees

NearBuy Local Delivery Date

Mageworx Upsell & Cross‑sell

MCS: Multi Currency Switcher

QHE: Quick Holiday Effects

Inciter: Shipping & Promo Bars

Company

About us

Terms

Privacy policy

Support