To display the selected date/time details in the order view within a customer's account on the front-end, you need to edit the code of the customers/order.liquid in your theme.

Go to Online Store > Themes > > Actions > Edit code for the necessary theme. Find the file customers/order.liquid file and add the following code snippet to the place, where you need to display the chosen delivery date details.

{% if order.attributes.Delivery-Date %}
  {% assign deliveryMethod = "Store pickup" %}

  {% if order.attributes.Delivery-Method contains "localDelivery" %}
    {% assign deliveryMethod = "Local delivery" %}
  {% endif %}

  <div>
    <h2>{{ deliveryMethod }} information</h2>
    <p>
      {{ deliveryMethod }} date: {{ order.attributes.Delivery-Date }}
      <br />
      {% if order.attributes.Delivery-Time %}
      {{ deliveryMethod }} time: {{ order.attributes.Delivery-Time }}
      {% endif; %}
      <br />
      {% if order.attributes.Delivery-Comment %}
      Comments: {{ order.attributes.Delivery-Comment }}
      {% endif %}
      <br />
    </p>
  </div>
{% endif %}

Here is the example based on the Shopify 2.0 theme “Down”:

img 38.png

img 39.png

image (1).png


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