> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://www.effectify.help/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# Adding the Consent Date and Time to Order Confirmation Emails

## Introduction
You can include the **date and time when a customer agrees to your terms and conditions** in their order confirmation email. This helps you **track consent** and maintain accurate records. This guide walks you through the steps to **customize your Shopify order confirmation email** and display this information.

## **Step 1: Access Your Shopify Admin Dashboard**
1. Log in to your Shopify store at: [Shopify Admin](https://your-store.myshopify.com/admin)
2. From the sidebar, go to **Settings** → **Notifications**.
## **Step 2: Open the Order Confirmation Template**
* In the **Notifications** section, locate **Order confirmation** and click the link to open the template. ![](https://storage.crisp.chat/users/helpdesk/website/-/f/8/4/1/f8416cba63cde000/image_a1y009.png =1000xauto)
## **Step 3: Copy the Consent Date and Time Code**
Copy the following Liquid code snippet:
```
{% if attributes["Agreed to the Terms and Conditions on"] %}
  <table class="row">
    <tr>
      <td class="customer-info__item">
        <h4>Terms and Conditions</h4>
        <p><u>Agreed to the Terms and Conditions on:</u> {{ attributes["Agreed to the Terms and Conditions on"] }}</p>
      </td>
    </tr>
  </table>
{% endif %}
```
This code will display the consent date and time in the email **only if the customer agreed to the terms**.
## **Step 4: Paste the Code into the Email Template**
1. In the **Email body (HTML)** section, locate this part of the template:
```
{% if billing_address %}
<td class="customer-info__item">
<h4>Billing address</h4>
{{ billing_address | format_address }}
</td>
{% endif %}
</tr>
</table>
```
2. Paste the copied code just before the closing **</table>** line.
Tip: You can place the snippet anywhere in the order confirmation template that fits your email layout. Avoid inserting it inside another Liquid condition to prevent rendering issues.
## **Step 5: Save Your Changes**
* Click the green **Save** button to apply your changes.
## **Step 6: Test Your Update**
* Place a **test order** to verify that the consent date and time appear correctly in the order confirmation email.
## **Conclusion**
By following these steps, your order confirmation emails will clearly show **when customers agreed to your terms and conditions**, improving compliance and record-keeping.

For additional help, our **support team** is ready to assist! 😊

You can learn more about TnC in the [Shopify App Store page](https://apps.shopify.com/d569f75fcf1eeec927644330e4fb70c1?utm_source=effectify.help&utm_medium=article-footer-link&utm_campaign=help-article). If you need help, feel free to contact our **support team**.