Skip to Content

Order Download

The order_download object describes a downloadable item associated with an order, such as a digital product or file.

Usage Example

{%- comment -%} List all downloads for an order {%- endcomment -%} <ul> {% for download in order.downloads %} <li><a href="{{ download.url }}">{{ download.title }}</a></li> {% endfor %} </ul>

Properties

order_line_item

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.

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.