Add custom field to Order Confirmation email

Hi everyone and thanks in advance. I’ve been looking through other answers and cannot seem to under and/or get it to work.

I have created two custom fields on the cart page. They show up in admin panel fine, I just want to send the field values in the order confirmation email as well.

Here is my input field for the time picker:


          

          
        

Here is the code for the date picker (basic datepicker jquery):

{{ '//code.jquery.com/ui/1.9.2/themes/base/jquery-ui.css' | stylesheet_tag }}
  
  

    

      
      
       If no date is selected, orders are usually fulfilled within an hour of ordering. (12pm to 9pm daily)
    

  

  

What code snippet do I need to put into my email notification to get these to display?

Thanks again in advance to anyone that can help!

Also, note I just wanted a simple way to exclude a few dates, I found a solution and added it to the code above for the datepicker, in case it’s handy to anyone.

In case anyone is interested, here was the best and easiest solution to displaying all fields in the additional details area:


#### Additional Pick up or Delivery Details:

{% for attribute in attributes %}
{% assign attributecheck = attribute | last %}
{% if attributecheck != "" %}
{{ attribute | first | replace: '-', ' ' | replace: '_', ' ' | capitalize }} : {{ attribute | last | capitalize }}

{% endif %}
{% endfor %}

What file do you add this code to?