Order Download
The order_download object describes a downloadable file associated with an order line item.
{%- comment -%} List downloadable files for an order line {%- endcomment -%}
{% for download in item.downloads %}
<a href="{{ download.download_link }}">{{ download.filename }}</a>
{% endfor %}file_size
Returns the related order line item.
file_size
Returns the file_size
mime_type
Returns the mime type
basename
Returns the basename
filename
Returns the filename
download_times
Returns the maximum times this file can be downloaded.
download_times_left
Returns the number of times left this file can be downloaded.
download_link
Returns a link to the download page.
expires_at
Returns the date and time when this download link expires. Returns null if it never expires.
is_expired
Returns true if the download link has expired.