Adding file download links to your order notification emails

Here's how to add links to the files your customer uploaded to your 'new order notification' emails:

Text-only emails

  1. From your Shopify admin, go to Settings > Notifications.
  2. Click the name of the notification template that you want to add line item properties to.
  3. Find the following code (making sure it's in the order item listing, not your subtotal/tax/shipping rows):
    {{line.title}}
    	

    Replace it with:

    {{line.title}}{% for p in line.properties %}
    {% unless p.last == blank -%} {{p.first}}: {{p.last}} {% endunless %}{% endfor %}
    	
  4. Click Save.

HTML emails

  1. From your Shopify admin, go to Settings > Notifications.
  2. Click the name of the notification template that you want to add line item properties to.
  3. Find the following code (making sure it's in the order item listing, not your subtotal/tax/shipping rows):
    {{line.title}}<br> 	

    Replace it with:

    {% for p in line.properties %}
      {% assign first_character_in_key = p.first | first %}
      {% unless p.last == blank or first_character_in_key == "_" -%} <br />
        {% if p.last contains "https" %}<a href="{{p.last}}">{{p.first}}</a>{% else %}{{p.first}}: {{p.last}}{% endif %}
      {% endunless %}
    {% endfor %}
    	
  4. Click Save.

Repeat these steps for any other email notifications that you want to include line item properties.

Still need help? Contact Us Contact Us