Customer email included in order notification?

Hi,

Is it possible to have customers’ email addresses included in the order confirmation/notification email we get sent?

So clicking on the ‘view order’ button and opening the order on the site isn’t required to obtain the email address for tracking.

This seems to me like it should be standard.

Any help is appreciated :slightly_smiling_face:

Hi @B808 ,

I really think you meant the “new order notification” that is sent to you as a store owner. There is a separate email notification for customers by the way. Anyway, if you mean the “new order notification”, you can follow the instructions below.

  1. From your Admin page, click the Settings on the left hand bottom corner.

  2. Click Notifications, then go down to Staff Notification, and click New order.

  3. This will open the code page. Find the**

    .** Hit Ctrl + F to find. See image below for the location.

    1. Above the code, add the code below. See image below for code placement
    
    **Customer's email:** {{customer.email}}
    

    Preview:

    For the overall code here.

    {% capture email_title %}
        Security check
    {% endcapture %}
    
        
      
      
      
      
      
      
    
        
            
    
    |  |
    | - |
    
            <table>
    
                
                    
                        {% if fulfillment_aborted %}
                            
                                <table>
    
        <tr>
    
            <td>
    
                
            
    
    </td>
    
            <td>
    
                **Order was not fulfilled automatically**
                High risk of fraud detected. Before fulfilling this order or capturing payment, please review the the Risk Analysis and determine if this order is fraudulent.
            
    
    </td>
    
        </tr>
    
    </table>
    
                            
                        {% endif %}
                        {% if has_high_risks? %}
                            
                                <table>
    
        <tr>
    
            <td>
    
                
            
    
    </td>
    
            <td>
    
                **High risk of fraud detected**
                Before fulfilling this order or capturing payment, please review the the Risk Analysis and determine if this order is fraudulent.
            
    
    </td>
    
        </tr>
    
    </table>
    
                            
                        {% endif %}
                        <table>
    
      
        
          
            <table>
    
              
                
                  
                            <table>
    
      
        
          
            <table>
    
              
                
                  
                                <table>
    
                                    
                                        
                                            {% assign current_date = date | date: "%b %d" %}
                                            {% assign current_time = date | date: "%l:%M %P" %}
                                            {% if customer.name %}
                                                {{ customer.name }} placed order {{ name }} on {{ current_date }} at {{ current_time | strip }}.
                                            {% else %}
                                                Someone placed order {{ name }} on {{ current_date }} at {{ current_time | strip }}.
                                            {% endif %}
    
                                            **Customer's email:** {{customer.email}}
                                            <table>
    
      <tr>
    
        <td>
    
     
    
    </td>
    
      </tr>
    
      
        
          <table>
    
            <tr>
    
              <td>
    
    [View order](https://{{ shop.permanent_domain }}/admin/orders/{{ id }})
    
    </td>
    
            </tr>
    
          </table>
        
      
    </table>
    
                                        
                                    
                                </table>
    
                
              
            </table>
          
        
      
    </table>
                            <table>
    
      
        
          
            <table>
    
              
                
                  
                                **Order summary**
                                
    
                                
    
                                
    
      {% for line in subtotal_line_items %}
      {% endfor %}
    <table>
    
        
          <table>
    
            <td>
    
              {% if line.image %}
                
              {% endif %}
            
    
    </td>
    
            
              {% if line.quantity < line.quantity %}
                {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
              {% else %}
                {% assign line_display = line.quantity  %}
              {% endif %}
              
              
                {% if line.product.title == blank %}
                  {{ line.title }}
    
                {% else %}
                  {{ line.product.title }}
                {% endif %}
              
    
              
              {% if line.quantity %}
                {% if line.original_line_price != line.final_line_price %}
                  <del>{{ line.original_price | money }}</del>
                {% endif %}
                 {{ line.final_price | money }} × {{ line.quantity }} 
    
              {% endif %}
              
              {% if line.variant.title != 'Default Title' %}
                {{ line.variant.title }}
    
                {% if line.sku != blank %}
                  • 
                {% endif %}
              {% endif %}
    
              {% if line.sku != blank %}
                SKU: {{ line.sku }}
              {% endif %}
              
              {% if line.selling_plan_allocation != nil %}
                
    
    {{ line.selling_plan_allocation.selling_plan.name }}
    
              {% endif %}
    
            
              
                
    
                  {% if line.final_line_price > 0 %}
                    {{ line.final_line_price | money }}
                  {% else %}
                    Free
                  {% endif %}
                
    
              
          </table>
        
      </table>
    
                                <table>
    
      
        
          
            
            
            {% assign discount_value = 0 %}
            {% for discount_application in discount_applications %}
              {% if discount_application.target_selection == 'all' %}
                  {% assign discount_value = discount_application.total_allocated_amount %}
              {% endif %}
            {% endfor %}
            
    
            {% for discount_application in discount_applications %}
              {% if discount_application.target_selection == 'all' %}
                {% capture discount_title %}
                  {% if discount_application.title %}
                    {{ discount_application.title | upcase }}
                  {% else %}
                    Discount
                  {% endif %}
                {% endcapture %}
                
    
              {% endif %}
            {% endfor %}
    
            {% if delivery_method == 'pick-up' %}
              
    
            {% else %}
              
    
            {% endif %}
    
            {% for tax_line in tax_lines %}
              
    
            {% endfor %}
    
          <table>
    <tr>
    
      <td>
    
        
    
          {% if titleBold %}
            **Subtotal**
          {% else %}
            Subtotal
          {% endif %}
        
    
      
    
    </td>
    
      <td>
    
        {% if valueBold %}
          **{{ subtotal_price | plus: discount_value | money }}**
        {% else %}
          {{ subtotal_price | plus: discount_value | money }}
        {% endif %}  
      
    
    </td>
    
    </tr>
    <tr>
    
      <td>
    
        
    
          {% if titleBold %}
            **Discount**
          {% else %}
            Discount
          {% endif %}
            
              {% if discount_title.size > 0 %}({{ discount_title | strip }}){% endif %}
            
        
    
      
    
    </td>
    
      <td>
    
        {% if valueBold %}
          **-{{ discount_application.total_allocated_amount | money }}**
        {% else %}
          -{{ discount_application.total_allocated_amount | money }}
        {% endif %}  
      
    
    </td>
    
    </tr>
    <tr>
    
      <td>
    
        
    
          {% if titleBold %}
            **Pickup**
          {% else %}
            Pickup
          {% endif %}
        
    
      
    
    </td>
    
      <td>
    
        {% if valueBold %}
          **{{ shipping_price | money }}**
        {% else %}
          {{ shipping_price | money }}
        {% endif %}  
      
    
    </td>
    
    </tr>
    <tr>
    
      <td>
    
        
    
          {% if titleBold %}
            **Shipping**
          {% else %}
            Shipping
          {% endif %}
            
              {% if shipping_method.title.size > 0 %}({{ shipping_method.title }}){% endif %}
            
        
    
      
    
    </td>
    
      <td>
    
        {% if valueBold %}
          **{{ shipping_price | money }}**
        {% else %}
          {{ shipping_price | money }}
        {% endif %}  
      
    
    </td>
    
    </tr>
    <tr>
    
      <td>
    
        
    
          {% if titleBold %}
            **Tax**
          {% else %}
            Tax
          {% endif %}
            
              {% if tax_line.title.size > 0 %}({{ tax_line.title }} {{ tax_line.rate | times: 100 }}%){% endif %}
            
        
    
      
    
    </td>
    
      <td>
    
        {% if valueBold %}
          **{{ tax_line.price | money }}**
        {% else %}
          {{ tax_line.price | money }}
        {% endif %}  
      
    
    </td>
    
    </tr>
    </table>
          <table>
    
            
    <tr>
    
      <td>
    
        
    
          {% if titleBold %}
            **Total**
          {% else %}
            Total
          {% endif %}
        
    
      
    
    </td>
    
      <td>
    
        {% if valueBold %}
          **{{ total_price | money_with_currency }}**
        {% else %}
          {{ total_price | money_with_currency }}
        {% endif %}  
      
    
    </td>
    
    </tr>
    
          </table>
        
      
    </table>
    
                
              
            </table>
          
        
      
    </table>
                            <table>
    
      
        
          
            <table>
    
              
                
                  
                                {% if gateway %}
                                    <table>
    
                                        <tr>
    
                                            <td>
    
                                                **Payment processing method**
                                                
    
                                                
    
    {{ gateway }}
    
                                            
    
    </td>
    
                                        </tr>
    
                                    </table>
                                {% endif %}
                                {% if requires_shipping and shipping_address %}
                                    {% if shipping_methods.first %}
                                        
    
                                        <table>
    
                                            <tr>
    
                                                <td>
    
                                                    **Delivery method**
                                                    
    
                                                    {% for shipping_method in shipping_methods %}
                                                        
    
    {{ shipping_method.title }}
    
                                                    {% endfor %}
                                                
    
    </td>
    
                                            </tr>
    
                                        </table>
                                    {% endif %}
                                    
    
                                    <table>
    
                                        <tr>
    
                                            <td>
    
                                                **Shipping address**
                                                
    
                                                
    
                                                    {{ shipping_address.name }}
    
                                                    {{ shipping_address.street }}
    
                                                    {{ shipping_address.city }},
                                                    {{ shipping_address.province }}
                                                    {{ shipping_address.zip }}
    
                                                    {{ shipping_address.country }}
    
                                                    {{ shipping_address.phone }}
    
                                                
    
                                            
    
    </td>
    
                                        </tr>
    
                                    </table>
                                {% endif %}
    
                
              
            </table>
          
        
      
    </table>
    
                
              
            </table>
          
        
      
    </table>
                        
    
                    
                
            </table>
        
    
    

Awesome, thankyou, I think that’s it, thanks for the quick reply

B

1 Like

Please close this question by accepting a solution. Thank you