Articles on: Shopify Apps

How To Add The Gift Options To The Order Confirmation Email (That's being sent after checkout)?

Before you begin: Please note that this guide involves interfering with the email confirmation template code. If you are unsure about a certain step, please contact our support team and we will apply it for you

Introduction


You can easily include the gift options your customers choose in the confirmation emails they receive right after checkout. Follow these steps to in order to make the gift options appear in your order confirmation email template:

Click here and open the Customer notifications section of your store's settings.

Click on the Order confirmation option.



Click on the Edit code option at the top of the page



In the Email body (HTML) section, open the search menu by pressing Ctrl + F or Cmd + F in the keyboard, then search for the following line of code: <table class="row footer">. In the default Shopify Order Confirmation email template, this line of code is usually located in line 1149.


Paste the following code above the line of code you've just located:

{% if attributes["Gift Message"] or attributes["Gift Wrap"] or attributes["Gift Receipt"] %}
    <table class="row section">
        <tr>
            <td class="section__cell">
                <center>
                    <table class="container">
                        <tr>
                            <td>
                                <h3>Gift options</h3>
                            </td>
                        </tr>
                    </table>
                    <table class="container">
                        <tr>
                            <td>
                                <table class="row">
                                    <tr>
                                        <td class="customer-info__item">
                                            {% 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>
                            </td>
                        </tr>
                    </table>
                </center>
            </td>
        </tr>
    </table>
{% endif %}




Click on the Save button that will appear at the top of the page in order to apply your changes.

To ensure everything is set up correctly, make a test order with all of the gift options you wish to test and check the updated order confirmation email. Please note that some email templates may still require our support team's help in order to function properly.

Conclusion


By following the above steps you can easily add the gift options that customer choose to the order confirmation email that they receive once they place an order on the store.

If you have any questions or need further assistance, our support team is here to help!

Updated on: 25/03/2025