{% extends 'catalogue/detail.html' %} {% load static thumbnail i18n purchase_info_tags product_tags %} {% block content %} {% thumbnail product.get_all_images.first.original "1920x1080" upscale=False as thumb %}
{% if product.attr.premium %}
{% endif %}
{% 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 %} {% endif %}

{{ product.get_title }}

{% block product_stock_record %} {% include "catalogue/partials/stock_record.html" with verbose=1 %} {% endblock %}
{{ product.attr.coffee_taste }}
{% comment %} {% iffeature "reviews" %} {% include "catalogue/reviews/partials/review_stars.html" %} {% endiffeature %} {% endcomment %}
{% block variants %} {% if subscription %}
*Save up to 20% when you subscribe!
{% endif %} {% for item in variation_attributes %}
{% endfor %} {% endblock %} {% block product_basket_form %} {% include "catalogue/partials/add_to_basket_form.html" %} {% endblock %}
{% endblock %}
{% endthumbnail %}
{{ product.attr.more_taste|safe }}
{% block product_gallery %} {% include "catalogue/partials/gallery.html" %} {% endblock %}
{% block product_info %}

{% trans "Product Information" %}

Country
{{ product.attr.country }}
Producer
{{ product.attr.coffee_producer }}
Altitude
{{ product.attr.altitude }}
Varietal
{{ product.attr.varietal }}
Processes
{{ product.attr.process }}
{% endblock %}
{% comment %} {% iffeature "reviews" %} {% trans "Number of reviews" %} {{ product.num_approved_reviews }} {% endiffeature %} {% endcomment %}
{% block product_description %} {% if product.description %}

{% trans "Product Description" %}

{{ product.description|safe }}

{% endif %} {% endblock %}
{% with recommended_products=product.sorted_recommended_products|slice:":6" %} {% if recommended_products %}

{% trans "Recommended items" %}

{% for product in recommended_products %}
{% render_product product %}
{% endfor %}
{% endif %} {% endwith %}
{% endblock %} {% block scripts %} {{ block.super }} {% endblock %}