{% extends 'layouts/base.html' %} {% load i18n %} {% load pyaa %} {% load pyaa_customer %} {% load pyaa_format %} {% load static %} {% block content %} {% url 'shop_checkout' 'product-purchase' product.token as url_shop_checkout %}

{{ product.name }}

{{ product.name }}

{% trans "model.field.price" %}

{{ product.price|format_currency:product.currency }}

{% if user.is_authenticated %} {% trans "button.buy-now" %} {% else %} {% trans "button.buy-now" %} {% endif %}
{% if product.description %}

{% trans "model.field.description" %}

{{ product.description|safe }}
{% endif %} {% if product_files %}

{% trans "title.shop-product-files" %}

{% for file in product_files %}
File

{{ file.name }}

{% if file.description %}

{{ file.description }}

{% endif %}
{% if file.file_type %} {{ file.file_type }} {% endif %} {% if file.file_size %} {{ file.file_size|filesizeformat }} {% endif %}
{% if user.is_authenticated %} {% has_purchased_product user.customer product.id as has_purchased %} {% if has_purchased %} {% trans "button.download" %} {% else %} {% endif %} {% else %} {% trans "button.buy-now" %} {% endif %}
{% endfor %}
{% endif %}
{% endblock content %}