You can use the attachment.image_url, attachment.get_file_name, attachment.name and attachment.description variables to include file attachments that were added beside artwork approval line items in the Artwork Approval Template.
Add the following code as a list item to the desired position within the {% for line_item in artwork.products_requiring_approval %} loop:
<li>
{% assign first_attachment = true %}
{% for attachment in line_item.attachments_viewable_customer %}
{% if first_attachment %}
<label>File Attachments:</label>
{% assign first_attachment = false %}
{% endif %}
{% if attachment.image_url %}
<div class="image" >
<img src="{{ attachment.image_url_100 }}" alt="[]" class ="attachment_image" />
</div>
{% else %}
<div>
<p>{{ attachment.get_file_name }}</p>
</div>
{% endif %}
<ul>
<li><label><em>Name </em></label><span>{{ attachment.name }}</span></li>
<li><label><em>Description </em></label><span>{{ attachment.description }}</span></li>
</ul>
{% endfor %}
</li>
Comments
0 comments
Please sign in to leave a comment.