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 Templates >  New Order (near the bottom of the page)

In the New Order template search for the code below.

if line.selling_plan_allocation

The code above should appear on line 212 of the template (like in the screenshot below).

Above the {% if line.selling_plan_allocation != nil %} code place the following code on line 211.

{% for p in %}
{% unless p.last == blank or p.first == '_' %}
<div class="bcpo-property">{{ p.first }}:
{% if p.last contains '/uploads/' %}
Uploaded File
{% else %}
{{ p.last }}
{% endif %}</div>
{% endunless %}
{% endfor %}

The result will look like the screenshot below.

For testing, the Send Test Notification won’t include line item properties, so you’ll need to checkout with a product whose price is set to $0.
You can revert back to the default notification by scrolling to the bottom of the page and clicking Revert to Default.
Was this article helpful?

Pin It on Pinterest