{% endif %}
{% purchase_info_for_product request product as session %}
{% if session.price.exists %}
{% trans "Price (excl. tax)" %}{{ session.price.excl_tax|currency:session.price.currency }}
{% if session.price.is_tax_known %}
{% trans "Price (incl. tax)" %}{{ session.price.incl_tax|currency:session.price.currency }}
{% trans "Tax" %} {% trans product.vat_rate %} ({% widthratio product.tax_percentage 1 100 %}%){{ session.price.tax|currency:session.price.currency }}
{% endif %}
{% endif %}
{% for av in product.attribute_values.all %}
{{ av.attribute.name }}{{ av.value_as_html }}
{% endfor %}
{% iffeature "reviews" %}
{% trans "Number of reviews" %}{{ product.num_approved_reviews }}
{% endiffeature %}
{% endblock %}
{% block product_main %}
{% comment %}
This is a but clunky here. Better to have some kind of JS-driven dashboard menu that
pops out when clicked. A bit like the Django-Debug-Toolbar button
{% endcomment %}
{% if user.is_staff %}
{% trans "Edit this product" %}
{% endif %}