Articles on: Shopify Apps

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
  2. From the sidebar, go to SettingsNotifications.

Step 2: Open the Order Confirmation Template

  • In the Notifications section, locate Order confirmation and click the link to open the template.

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>
  1. 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! 😊

Updated on: 18/03/2026