Skip to Content

Attachment

The attachment object represents a downloadable file or external link associated with a product, such as a manual, certificate, or data sheet.

Usage Example

{%- comment -%} List product attachments {%- endcomment -%} {% if product.attachments.size > 0 %} <ul> {% for attachment in product.attachments %} <li><a href="{{ attachment.url }}">{{ attachment.name }}</a></li> {% endfor %} </ul> {% endif %}

Properties

name

Returns the display name or title of the attachment (file or link) as shown to users.

href

Returns the URL or file path where the attachment can be accessed or downloaded.