How to add the terms and conditions consent date and time to the order confirmation email?
Last updated
Last updated
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:
4. Then, search the following lines of code in the Email body (HTML) section:
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! :-)