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

It is possible to include the gift options that customers have selected 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:

{% 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 %}

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>

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 with gift options and see the updated order confirmation email.

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 updated