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>
Result
Still have questions? In your DecoNetwork Admin, use the Universal Search box in the top bar to find more related help guides. Need more help? Click the icon next to the search box to open the help menu and submit a support ticket. Our Client Services team is ready to assist!
Comments
0 comments
Please sign in to leave a comment.