Articles on: Advanced Settings

Order confirmation email with location

Once a customer places an order, the customer needs to be informed about the date and time he/she has picked.

The order confirmation email can be updated by following steps.

A. Shortcut Via our App: Settings -> Notifications



B. Then look for: Edit order confirmation email



Or Via Shopify Admin: In your Shopify admin Go to Setting → Notifications → Order Confirmation

Notification Settings


In the body of the email template insert the following code in the given sequence.

Below code you can edit as per your store language.
{% 
  ###################################
  # Declare delivery method and weekdays labels ( You can edit )
  ###################################
%}

{% assign BIRD_TRANSLATED_METHODS = "Delivery,Pick Up,Shipping"  | split: "," %}
{% assign BIRD_TRANSLATED_DAYS = "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday"  | split: "," %}

{% 
  ###################################
  # Extract delivery method, date, time, location ( Dont Edit)
  ###################################
%}

{% if order.attributes['Delivery Method'] and keyValuePairs == nil %}
  {% if order.attributes['Delivery Method']  == 'Delivery' %}
    {% assign BIRD_METHOD = BIRD_TRANSLATED_METHODS[0] %}
  {% elsif order.attributes['Delivery Method']   == 'Pick Up'%}
    {% assign BIRD_METHOD = BIRD_TRANSLATED_METHODS[1] %}
  {% elsif order.attributes['Delivery Method']  == 'Shipping'%}
    {% assign BIRD_METHOD = BIRD_TRANSLATED_METHODS[2] %}
  {% endif %}
  {% assign BIRD_DATE = order.attributes['Delivery Date'] %}
  {% assign BIRD_TIME = order.attributes['Delivery Time'] %} 

  {% if order.attributes['Translated Delivery Time'] %}
    {% assign BIRD_TIME = order.attributes['Translated Delivery Time'] %}
  {% endif %}

  {% if order.attributes['Delivery Method'] == 'Pick Up' and order.attributes['Delivery Location'] %}
    {% assign BIRD_LOCATION = order.attributes['Delivery Location'] %}
  {% endif %}

  {% assign BIRD_INDEX = BIRD_DATE | date: "%w" | plus: 0 %}
  {% assign BIRD_DAY =  BIRD_TRANSLATED_DAYS[BIRD_INDEX] %}
{% endif %}


{%
###################################
# Display relevant attributes to customer ( you can edit )
###################################
%}

{% if BIRD_METHOD %}
  <table class="container">
    <br/>
    <tr>
      <td>
        <h4>Delivery Method</h4>
        {{BIRD_METHOD}}
        <br/>
        {{ BIRD_LOCATION }}
        {% if BIRD_DATE %}
        <h4>Date & Time</h4>
        {{BIRD_DATE | date: "%d.%m.%Y" }}
        {% endif %}
        {% if BIRD_TIME%}
        {{BIRD_TIME}}
        {% endif %}
        ({{BIRD_DAY}})
      <br/>
      </td>
    </tr>
  </table>
{% endif %}


We recommend to paste the code above the Order Summary table as shown below. You have the rights to paste the code at any place.


Below is a sample image of the order confirmation email with above template code


Confirmation email with date &amp; time

Change date format
You can use one of following options to format date in your desired format in the order confirmation email.
{{ Bird_Date | date: "%d-%m-%Y" }}


{{ Bird_Date | date: "%m-%d-%Y" }}


{{ Bird_Date | date: "%Y-%m-%d" }}


{{ Bird_Date | date: "%d.%m.%Y" }}


Need Help?



If you are facing issues with the setup like the slot picker not appearing or the slots not working as per your requirement. We provide setup assistance for free. Please ping us via in-app chat bubble or mail us at support@birdchime.com for setup assistance.

Updated on: 12/04/2023

Was this article helpful?

Share your feedback

Cancel

Thank you!