How to show delivery date and time in order confirmation email?

AI Overview

An order confirmation email is automatically sent to you after a customer places an order on your Shopify store, providing essential details like the order number and items purchased. To include the selected delivery date and time in this email, you need to modify the email template by inserting specific code snippets at designated positions.

Log into your Admin panel and access the "Order Confirmation Email Template." You can add the provided code to display the delivery date and time, ensuring to adjust the attribute names as necessary. If you need custom styling or further assistance, you can reach out to the support team via email or WhatsApp for help with coding or styling challenges.

A Shopify order confirmation email is an automated message sent to customers after they successfully place an order on a Shopify store. It typically includes essential details such as the order number, items purchased, total cost, shipping address, and etc… This email serves as a receipt and reassurance, helping customers track their purchase and providing contact information for any inquiries.

To show the selected order delivery date in the order confirmation email, please follow the below steps.

  1. Email template file path: Login into Admin panel.
  2. Click on this link “Order Confirmation Email Template”.
  3. Insert below code where you want to show order Additional Detail at this position in the file and save it.
  4. And also insert the below code into all related email templates in which you want to send Order Delivery Date details

Everything from the Additional Information


{% for attribute in attributes %}
{% assign attributecheck = attribute | last %}
{% if attributecheck != "" %}
<p style="margin:0">{{ attribute | first | replace: '-', ' ' | replace: '_', ' ' | capitalize }} : {{ attribute | last | capitalize }}</p>
{% endif %}
{% endfor %}

To pass only delivery date & time

Method-1


{% if attributes['Delivery Date'] %}
<p style="margin:0">Delivery date: {{ attributes['Delivery Date'] }}</p>
{% endif %}
{% if attributes['Delivery Time'] %}
<p style="margin:0">Delivery time: {{ attributes['Delivery Time'] }}</p>
{% endif %}

Method-2


{% for attribute in attributes %}
{% assign attributecheck = attribute | last %}
{% assign attributefirst = attribute | first %}
{% if attributecheck != "" %}
{% if attributefirst == 'Delivery Date' or attributefirst == 'Delivery Time' %}
<p style="margin:0">{{ attribute | first | replace: '-', ' ' | replace: '_', ' ' | capitalize }} : {{ attribute | last }}</p>
{% endif %}
{% endif %}
{% endfor %}

Remove date format, Location ID, and Store name


{% for attribute in attributes %}
{% assign attributecheck = attribute | last %}
{% assign attributefirst = attribute | first %}
{% if attributecheck != "" %}
{% if attributefirst != 'Date Format' and attributefirst != 'Location Id' and attributefirst != 'Store Name' %}
<p style="margin:0">{{ attribute | first | replace: '-', ' ' | replace: '_', ' ' | capitalize }} : {{ attribute | last }}</p>
{% endif %}
{% endif %}
{% endfor %}

If you wish to apply custom styling to the delivery information section, you can modify the existing code using your coding knowledge.

Need Assistance?

If you have any questions, need further guidance, or would like to discuss your customization, our support team is here to help! Feel free to reach out to us at [email protected] or send us message on WhatsApp using +91 73831 29192 number. We’re happy to assist you with any coding challenges or styling requirements.