Customise order confirmation email

I have customers telling me their delivery date is not reflected in the email and the gift messages that they have key in. I would like it to be reflected on 2 location

  1. Packing slips

current code:


 

   

     
![GoDaddyStudioPage-0_12.png?v=1665673466|2048x683](upload://nnzflVFeB9komwlg0D63PabRFuE.jpeg)

   

   
     

       Order {{ order.name }}
     

     

       {{ order.created_at | date: "%B %e, %Y" }}
     

   

 

         
 

   

     

       Ship to
     

     

       {% if shipping_address != blank %}
         {{ shipping_address.name }}
         {% if shipping_address.company != blank %}
           

           {{ shipping_address.company }}
         {% endif %}
         

         {{ shipping_address.address1 }}
         {% if shipping_address.address2 != blank %}
           

           {{ shipping_address.address2 }}
         {% endif %}
         {% if shipping_address.city_province_zip != blank %}
           

           {{ shipping_address.city_province_zip }}
         {% endif %}
         
  
         {{ shipping_address.country }}
       {% else %}
         No shipping address
       {% endif %}
     

   

   
     

       Bill to
     

     

       {% if billing_address != blank %}
         {{ billing_address.name }}
         {% if billing_address.company != blank %}
           

           {{ billing_address.company }}
         {% endif %}
         

         {{ billing_address.address1 }}
         {%  if billing_address.address2 != blank %}
           

           {{ billing_address.address2 }}
         {% endif %}
         {% if billing_address.city_province_zip != blank %}
           

           {{ billing_address.city_province_zip }}
         {% endif %}
         

         {{ billing_address.country }}
       {% else %}
         No billing address
       {% endif %}
     

   

 

 

---

 
   

     

       

         Items
       

     

     
       

         Quantity
       

     

   

   {% for line_item in line_items_in_shipment %}
     
       

         

           
             **{{ line_item.title }}**
           
           {% if line_item.variant_title != blank %}
             
               {{ line_item.variant_title }}
               {% if line_item.sku != blank %}
                 •
                 {{ line_item.sku }}
               {% endif %}
             
           {% elsif line_item.sku != blank %}
             
               {{ line_item.sku }}
             
           {% endif %}
         

       

       
         

           {{ line_item.shipping_quantity }} of {{ line_item.quantity }}
         

       

     

   {% endfor %}
 

 {% unless includes_all_line_items_in_order %}
   

---

   

     There are other items from your order not included in this shipment.
   

 {% endunless %}
 

---

 {% if order.note != blank %}
   
     

       Notes
     

     

       {{ order.note }}
     

   

 {% endif %}
 
   

     We hope you love this bouquet as much as we love curating it! 
   

     

     {{ shop.email }}
     

     {{ shop.domain }}
   

     Do leave a review on the QR code down below it will mean alot to us as a humble home-based florist
   

   
   

     
![bit.ly_3CI9zw6.png?v=1665839695|512x512](upload://7FMCQRvCrWpb5zhy3ViyAV5k4iF.png)

   

   

 

  1. Order confirmation email.

current code :

{% capture email_title %}Thank you for your purchase! {% endcapture %}
{% capture email_body %}
  {% if requires_shipping %}
  {% case delivery_method %}
      {% when 'pick-up' %}
        You’ll receive an email when your order is ready for pickup.
      {% when 'local' %}
        Hi {{ customer.first_name }}, we're getting your flower bouquet order ready for delivery.
      {% else %}
        Hi {{ customer.first_name }}, we're getting your flower bouquet order ready to be delivered! We will notify you when it has been sent.
    {% endcase %}
      {% if delivery_instructions != blank  %}
        

**Delivery information:** {{ delivery_instructions }}

      {% endif %}
     {% if consolidated_estimated_delivery_time %}
       

         Estimated delivery **{{ consolidated_estimated_delivery_time }}**
       

     {% endif %}
  {% endif %}
{% endcapture %}

  
  
  
  
  
  

  
    <table>

      
        
          <table>

  
    
      

        <table>

          
            

              <table>

                <tr>

                  <td>

                    {%- if shop.email_logo_url %}
                      
                    {%- else %}
                      # 
                        {{ shop.name }}
                      
                    {%- endif %}
                  

</td>

                    <td>

                      
                        Order {{ order_name }}
                      
                    

</td>

                </tr>

              </table>

            
          
        </table>

      
    
  
</table>

          <table>

  
    
      
        <table>

          
            
              
            ## {{ email_title }}
            

{{ email_body }}

            {% if order_status_url %}
              <table>

  <tr>

    <td>

 

</td>

  </tr>

  
    
      <table>

        <tr>

          <td>

View your order

</td>

        </tr>

      </table>
      {% if shop.url %}
    <table>

      <tr>

        <td>

or Visit our store

</td>

      </tr>

    </table>
{% endif %}

    
  
</table>

            {% else %}
              {% if shop.url %}
    <table>

      
        
          <table>

            <tr>

              <td>

Visit our store

</td>

            </tr>

          </table>
        
      
    </table>
{% endif %}

            {% endif %}

            
          
        </table>
      
    
  
</table>

          {% assign gift_card_line_item = line_items | where: "gift_card" %}
          {% if gift_card_line_item.first %}
            <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Gift card
            

</td>

          </tr>

        </table>
        <table>

          <tr>

            <td>

              
              

 You’ll receive separate emails for any gift cards.

            

</td>

          </tr>

        </table>
      
    
  
</table>
          {% endif %}

          <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Order summary
            

</td>

          </tr>

        </table>
        <table>

          
            
              
            

  {% for line in subtotal_line_items %}
  {% endfor %}
<table>

    
      <table>

        <td>

          {% if line.image %}
            
          {% endif %}
        

</td>

        <td>

          {% if line.product.title %}	
            {% assign line_title = line.product.title %}	
          {% else %}	
            {% assign line_title = line.title %}	
          {% endif %}

          {% if line.quantity < line.quantity %}
            {% capture line_display %} {{ line.quantity }} of {{ line.quantity }} {% endcapture %}
          {% else %}
            {% assign line_display = line.quantity  %}
          {% endif %}

          {{ line_title }} × {{ line_display }}

          {% if line.variant.title != 'Default Title' %}
            {{ line.variant.title }}

          {% endif %}

          {% if line.selling_plan_allocation %}
            {{ line.selling_plan_allocation.selling_plan.name }}

          {% endif %}

          {% if line.refunded_quantity > 0 %}
            Refunded
          {% endif %}

          {% if line.discount_allocations %}
            {% for discount_allocation in line.discount_allocations %}
              {% if discount_allocation.discount_application.target_selection != 'all' %}
                
                  
                  
                    {{ discount_allocation.discount_application.title | upcase }}
                    (-{{ discount_allocation.amount | money }})
                  
                
              {% endif %}
            {% endfor %}
          {% endif %}
        

</td>

          
            {% if line.original_line_price != line.final_line_price %}
              <del>{{ line.original_line_price | money }}</del>
            {% endif %}
            

              {% if line.final_line_price > 0 %}
                {{ line.final_line_price | money }}
              {% else %}
                Free
              {% endif %}
            

          
      </table>
    
  </table>

            <table>

  
    <td>

</td>

    
      
        {% 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 %}

        {% if total_duties %}
          

        {% endif %}

        

        {% if total_tip and total_tip > 0 %}
          

        {% endif %}
      <table>
<tr>

  <td>

    

      Discount
        
          
          {{ discount_title }}
        
    

  

</td>

  <td>

    **-{{ discount_application.total_allocated_amount | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Subtotal
    

  

</td>

  <td>

    **{{ subtotal_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Pickup
    

  

</td>

  <td>

    **{{ shipping_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Shipping
    

  

</td>

  <td>

    **{{ shipping_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Duties
    

  

</td>

  <td>

    **{{ total_duties | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Taxes
    

  

</td>

  <td>

    **{{ tax_price | money }}**
  

</td>

</tr>
<tr>

  <td>

    

      Tip
    

  

</td>

  <td>

    **{{ total_tip | money }}**
  

</td>

</tr>
</table>
      {% assign transaction_size = 0 %}
      {% assign transaction_amount = 0 %}
      {% for transaction in transactions %}
        {% if transaction.status == "success" %}
        {% unless transaction.kind == "authorization" or transaction.kind == "void" %}
          {% assign transaction_size = transaction_size | plus: 1 %}
          {% assign transaction_amount = transaction_amount | plus: transaction.amount %}
        {% endunless %}
        {% endif %}
      {% endfor %}
      
      {% if payment_terms %}
        {% assign due_at_date = payment_terms.next_payment.due_at | date: "%b %d, %Y" %}
        

          

      {% else %}
        

      {% endif %}
      <table>
<tr>

  <td>

    

      Total paid today
    

  

</td>

  <td>

    **{{ transaction_amount | money_with_currency }}**
  

</td>

</tr>

        <tr>

  <td>

    

      Total due {{ due_at_date }}
    

  

</td>

  <td>

    **{{ payment_terms.next_payment.amount_due | money_with_currency }}**
  

</td>

</tr>

        <tr>

  <td>

    

      Total
    

  

</td>

  <td>

    **{{ total_price | money_with_currency }}**
  

</td>

</tr>
</table>

      {% if total_discounts > 0 %}
        

          You saved {{ total_discounts | money }}
        

      {% endif %}

      {% unless payment_terms %}
      {% if transaction_size > 1 or transaction_amount < total_price %}
        

          {% for transaction in transactions %}
            {% if transaction.status == "success" and transaction.kind == "capture" or transaction.kind == "sale" %}
              {% if transaction.payment_details.credit_card_company %}
                {% capture transaction_name %}{{ transaction.payment_details.credit_card_company }} (ending in {{ transaction.payment_details.credit_card_last_four_digits }}){% endcapture %}
              {% else %}
                {% capture transaction_name %}{{ transaction.gateway_display_name }}{% endcapture %}
              {% endif %}

              

            {% endif %}
            {% if transaction.kind == 'refund' %}
              {% if transaction.payment_details.credit_card_company %}
                {% assign refund_method_title = transaction.payment_details.credit_card_company %}
              {% else %}
                {% assign refund_method_title = transaction.gateway %}
              {% endif %}

              

            {% endif %}
          {% endfor %}
        <table>

          <tr>
<td colspan="2">

</td>
</tr>

          <tr>
<td colspan="2">

</td>
</tr>
<tr>

  <td>

    

      {{transaction_name}}
    

  

</td>

  <td>

    **{{ transaction.amount | money }}**
  

</td>

</tr>

  
    

      Refund
        

        <small>{{ refund_method_title | capitalize }}</small>
    

  
  
    **- {{ transaction.amount | money }}**
  
</table>
      {% endif %}
      {% endunless %}
    
  
</table>

            
          
        </table>
      
    
  
</table>

          <table>

  
    
      
        <table>

          <tr>

            <td>

              ### Customer information
            

</td>

          </tr>

        </table>
        <table>

          
            
              
            
                {% if requires_shipping and shipping_address %}
                
                {% endif %}
                {% if billing_address %}
                
                {% endif %}
              <table>

              <tr>
<td>

                  #### Shipping address
                  {{ shipping_address | format_address }}
                

</td>
<td>

                  #### Billing address
                  {{ billing_address | format_address }}
                

</td>
</tr>

            </table>
            
                {% if requires_shipping and shipping_address %}
                
                {% endif %}
                {% assign transaction_count = transactions | size %}
                {% if transaction_size > 0 %}
                
                {% endif %}
              <table>

              <tr>
<td>

                  #### Shipping method
                  

{{ shipping_method.title }}

                

</td>
<td>

                  #### Payment method
                  {% for transaction in transactions %}
                    {% if transaction.status == "success" or transaction.status == "pending" %}
                      {% if transaction.kind == "capture" or transaction.kind == "sale" %}
                        {% if transaction.payment_details.credit_card_company %}
                            

                              
                              ending with {{ transaction.payment_details.credit_card_last_four_digits }}
                            

                          {% elsif transaction.gateway_display_name == "Gift card" %}
                          

                            
                          ending with {{ transaction.payment_details.gift_card.last_four_characters | upcase }}

                                Gift card balance: {{ transaction.payment_details.gift_card.balance |  money }}
                          

                          {% else %}
                              

                              {{ transaction.gateway_display_name }}
                              

                          {% endif %}
                  {% endif %}
                    {% endif %}
                  {% endfor %}
                

</td>
</tr>

            </table>

            
          
        </table>
      
    
  
</table>

          <table>

  
    
      
        <table>

          <tr>

            <td>

              
              

If you have any questions, reply to this email or contact us at [{{ shop.email }}](mailto:{{ shop.email }})

            

</td>

          </tr>

        </table>
      
    
  
</table>

        
      
    </table>
  

just for reference the delivery date is from a 3rd party ding doong and it is reflected under “additional tags” section.

Theme: DAWN

URL: www.anydayflorist.com