How To Add The Gift Options To The Order Confirmation Email (That's being sent after checkout)?
How to Add Gift Options to the Order Confirmation Email
Want to make your order confirmation emails more personalized by including gift options? You can easily include the gift options your customers select in the confirmation emails they receive right after checkout. Follow these straightforward steps to enhance your order confirmation emails:
Access Your Shopify Admin Dashboard: Go to your Shopify store admin dashboard at https://your-store.myshopify.com/admin/. From the sidebar on the left, navigate to Settings and select Notifications.
Edit the Order Confirmation Template: In the Notifications section, locate Order Confirmation under the Orders category. Click on the Order Confirmation link and then select Edit Code in the Email section.
Copy the Gift Options Code: Copy the following code to your clipboard:
```liquid
{% if attributes["Gift Message"] or attributes["Gift Wrap"] or attributes["Gift Receipt"] %}
<table class="row">
<tr>
<td class="customer-info__item">
<h4>Gift Options</h4>
{% if attributes["Gift Message"] %}
<p><u>Gift Message:</u> {{ attributes["Gift Message"] }}</p>
{% endif %}
{% if attributes["Gift Wrap"] %}
<p><u>Gift Wrap:</u> {{ attributes["Gift Wrap"] }}</p>
{% endif %}
{% if attributes["Gift Receipt"] %}
<p><u>Gift Receipt:</u> {{ attributes["Gift Receipt"] }}</p>
{% endif %}
</td>
</tr>
</table>
{% endif %}
```
Locate the Insertion Point: 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 Code: Insert the code you copied just before the closing </table> tag. Your updated code should look like this:
Save Your Changes: Click the green Save button to apply your changes.
Verify Your Changes: To ensure everything is set up correctly, make a test order with gift options and check the updated order confirmation email.
Feel free to customize the placement of the code within the Order Confirmation template according to your preference. Just ensure that it’s not nested inside another Liquid condition to avoid any issues.
If you have any questions or need further assistance, our support team is here to help!
Updated on: 31/07/2024
Thank you!