How to add the terms and conditions consent date and time to the order confirmation email?
Want to include the date and time when a customer agrees to your terms and conditions in their order confirmation email? Adding this information can help you keep track of when consent was given and ensure better record-keeping. Follow these simple steps to customize your order confirmation email in Shopify:
Access Your Shopify Admin Dashboard
- Log in to your Shopify store and navigate to the admin dashboard: https://your-store.myshopify.com/admin.
- From the sidebar on the left, go to Settings, then select Notifications.
-
Open the Order Confirmation Template
- In the Notifications section, locate and click on the Order confirmation link.
Copy the Code for Consent Date and Time
- Copy the following code snippet to your clipboard:
```liquid
{% 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 %}
```
Paste the Code into the Email Template
- In the Email body (HTML) section, search for the following lines of code:
```liquid
{% if billing_address %}
<td class="customer-info__item">
<h4>Billing address</h4>
{{ billing_address | format_address }}
</td>
{% endif %}
</tr>
</table>
```
- Paste the copied code just before the </table> line.
Save Your Changes
- Click the green Save button to apply your changes.
Test Your Update
- Place a test order to verify that the consent date and time appear correctly in the order confirmation email.
Feel free to position the code snippet anywhere in the Order confirmation template that fits your needs. Just ensure it’s not placed inside another Liquid condition to avoid issues.
If you need further assistance or have any questions, our support team is here to help! 😊
Access Your Shopify Admin Dashboard
- Log in to your Shopify store and navigate to the admin dashboard: https://your-store.myshopify.com/admin.
- From the sidebar on the left, go to Settings, then select Notifications.
-
Open the Order Confirmation Template
- In the Notifications section, locate and click on the Order confirmation link.
Copy the Code for Consent Date and Time
- Copy the following code snippet to your clipboard:
```liquid
{% 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 %}
```
Paste the Code into the Email Template
- In the Email body (HTML) section, search for the following lines of code:
```liquid
{% if billing_address %}
<td class="customer-info__item">
<h4>Billing address</h4>
{{ billing_address | format_address }}
</td>
{% endif %}
</tr>
</table>
```
- Paste the copied code just before the </table> line.
Save Your Changes
- Click the green Save button to apply your changes.
Test Your Update
- Place a test order to verify that the consent date and time appear correctly in the order confirmation email.
Feel free to position the code snippet anywhere in the Order confirmation template that fits your needs. Just ensure it’s not placed inside another Liquid condition to avoid issues.
If you need further assistance or have any questions, our support team is here to help! 😊
Updated on: 31/07/2024
Thank you!