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
basename
Returns the basename.
download_link
Returns a link to the download page.
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.
expires_at
Returns the expiration date/time for the download link.
file_size
Returns the file size.
filename
Returns the filename.
id
Returns the unique id for this download.
is_expired
Returns true if the download link has expired.
mime_type
Returns the mime type.
title
Returns the title of the downloadable item.
url
Returns the download URL.
Last updated on