> For the complete documentation index, see [llms.txt](https://ymq-app.gitbook.io/ymq-product-options-app/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ymq-app.gitbook.io/ymq-product-options-app/email-notifications-and-packing-slips-and-invoices/order-confirmation-email-sent-to-customer.md).

# Order Confirmation (email sent to customer)

To get our apps **virtual options** to show up correctly on the Order Confirmation email you will need to add some code to your email template.

* Go to your **Shopify dashboard**
* Select **Settings**
* Select **Notifications**
* Select **Orders >** **Order Confirmation**
* Click **Edit Code**

<figure><img src="/files/EP1fHbNPvk0boluTSTnx" alt=""><figcaption></figcaption></figure>

In the Order Confirmation template search for the code below.

```liquid
if line.selling_plan_allocation
```

Above the **{% if line.selling\_plan\_allocation %}** code place the following code.

```liquid
{% for p in line.properties %}
    {% assign property_first_char = p.first | slice: 0 %}
    {% unless p.last == blank or property_first_char  == '_' %}
        <div class="ymq-property">{{ p.first }}:
        {% if p.last contains '/uploads/' %}
            <div><img src="{{ p.last }}" style="max-width: 50px; height: auto;"></div>
        {% else %}
            {{ p.last }}
        {% endif %}
        </div>
    {% endunless %}
{% endfor %}
```

The result will look like the screenshot below.

<figure><img src="/files/isf2ouOkXiLVs2ZcJQKr" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can revert back to the default notification by scrolling to the bottom of the page and clicking **Revert to Default**.![](/files/l8F3PId8waGXEI68y5kq)
{% endhint %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ymq-app.gitbook.io/ymq-product-options-app/email-notifications-and-packing-slips-and-invoices/order-confirmation-email-sent-to-customer.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
