New Order (email sent to staff)

To get our apps virtual options to show up correctly in the New Order email notifications (sent to staff), you will need to add some code to your template.

  • Go to your Shopify dashboard

  • Select Settings

  • Select Notifications

  • Select Orders > New Order (near the bottom of the page)

  • Click Edit Code

In the New Order 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