β˜‘οΈHow to add date and time to Order confirmation email?

Since Shopify doesn’t allow our app to directly modify the emails you send, you can manually insert the date and time customers selected by following these steps:

Step 1. Copy the following lines of code

{% comment %}Start Omega{% endcomment %}
  <table>
    <tr>
      <td class="customer-info__item">
        <h4>Additional details</h4>
        <p>
          {% for attribute in attributes %}
            {% assign attributeName = attribute | first %}
            {% assign attributeValue = attribute | last %}
            {% if attributeName != 'delivery_date_origin'
                and attributeName != 'ot_channel'
                and  attributeName != 'ot_location_id'
                and  attributeValue != '_' %}
              {{ attribute | first }}: {{ attribute | last }}<br>
            {% endif %}
          {% endfor %}
        </p>
      </td>
    </tr>
  </table>
{% comment %}End Omega{% endcomment %}

Step 2. Go to "Settings" and find "Notifications", then click "Customer notifcations"

Step 3. Choose "Order confirmation", and click "Edit code"

Step 4. Use Ctrl + F and type Shipping method to find

Step 5. Under the </tr>, paste the lines of code you just copied

Outcome

The selected delivery date and time will appear below Additional details:

Last updated

Was this helpful?