How to add the terms and conditions consent date and time to the order confirmation email? - HuskiApps
How to add the terms and conditions consent date and time to the order confirmation email? - HuskiApps How to add the terms and conditions consent date and time to the order confirmation email? - HuskiApps

How to add the terms and conditions consent date and time to the order confirmation email?

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.

 

Screenshot 2 1


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:

 

{% if billing_address %}
<td class=”customer-info__item”>
<h4>Billing address</h4>
{{ billing_address | format_address }}
</td>
{% endif %}
</tr>
</table>

 

Step 5. Paste the code you’ve just copied under the </table> line.

Screenshot 3 1

Step 6. Click on the green Save button.
Step 7. Done! You can make a test order and see the consent date in the order confirmation email you’ll receive.
Of course, if you are familiar with editing the code of the Order confirmation template, you can paste it wherever you’d like, just make sure to paste it as-is and not inside another Liquid condition or it won’t work.


Have a project you’d like to talk about?

Contact Us