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

In the Order Confirmation template search for the code below.

if line.selling_plan_allocation

Above the {% if line.selling_plan_allocation %} code place the following code.

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

Last updated