AI Overview
- Email template file path: Login into Admin panel.
- Click on this link "Order Confirmation Email Template".
- Insert below code where you want to show order Additional Detail at this position in the file and save it.
- 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 %}
Note: Please replace "Delivery Date" from "{% if attributes['Delivery Date'] %}" as per the title coming under the Additional Information in the Order.
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 %}