How to add the terms and conditions consent date and time to the order confirmation email?
It is possible to include the date and time when a customer has ticked the checkbox and agreed to your terms and conditions in the confirmation email that they receive immediately after placing an order in your store.
In order to do so, follow these simple steps:
Step 1. Open your Shopify store admin dashboard (https://your-store.myshopify.com/admin/) and navigate to the Settings section from the sidebar on the left. Then choose Notifications.
Step 2. Next, in the Notifications Orders section, click on the Order confirmation link.
Step 3. Copy the following code to your clipboard:
{% if attributes[“I agree to the terms”] %}
<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[“I agree to the terms”] }}</p>
</td>
</tr>
</table>
{% endif %}
Step 4. Then, search the following lines of code in the Email body (HTML) section: