Custom Background Music
Super Gift Options
Update Cart Button Remover
Custom Falling Images Effect
3D Seasonal Effects
Scarcity: Cart Countdown Timer
Colorful Scroll To Top
Waze & Google Maps Navigation
SocialBar - Social Media Icons
Magical Browser Tab Animations
Auto Price Update Pop Up
Scarcity: Low In Stock Alert
TikTok Pixel Installer
Live Product Visitors Counter
Blocky: Simple Country Blocker
How to add the terms and conditions consent date and time to the order confirmation email?
The date and time of when a customer has agreed to your terms and conditions will be added to the "Additional details" section of the order only if the order was made from the cart page (and not via the Buy it now button) due to programmatic restrictions
It is possible to include the date and time of 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 on your store.
In order to do so, follow these super simple steps:
1. Open your Shopify's store admin dashboard (https://your-store.myshopify.com/admin/) and navigate to the Settings section from the sidebar on the left. Then choose Notifications.
2. Next, in the Notifications Orders section, click on the Order confirmation link.
3. Copy the following code to your clipboard:
1
{% if attributes["Agreed to the Terms and Conditions on"] %}
2
<table class="row">
3
<tr>
4
<td class="customer-info__item">
5
<h4>Terms and Conditions</h4>
6
<p><u>Agreed to the Terms and Conditions on:</u> {{ attributes["Agreed to the Terms and Conditions on"] }}</p>
7
</td>
8
</tr>
9
</table>
10
{% endif %}
Copied!
4. Then, search the following lines of code in the Email body (HTML) section:
1
{% if billing_address %}
2
<td class="customer-info__item">
3
<h4>Billing address</h4>
4
{{ billing_address | format_address }}
5
</td>
6
{% endif %}
7
</tr>
8
</table>
Copied!
5. Paste the code you've just copied under the </table> line.
6. Click on the green Save button.
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.
Don'y forget that our support team, as always, is here to help with anything! :-)
Last modified 7mo ago
Copy link