{% extends 'oscar/catalogue/detail.html' %} {% load history_tags %} {% load currency_filters %} {% load reviews_tags %} {% load staticfiles %} {% load product_tags %} {% load display_tags %} {% load i18n %} {% load purchase_info_tags %} {% block content %}
{% block product_gallery %}
{% include "catalogue/partials/gallery.html" %}
{% 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 %} {% endif %}

{{ product.get_title }}

{% block product_stock_record %} {% include "catalogue/partials/stock_record.html" with verbose=1 %} {% endblock %} {% iffeature "reviews" %} {% include "catalogue/reviews/partials/review_stars.html" %} {% endiffeature %}
{% block product_basket_form %} {% block prepend_product_basket_form %}{% endblock %} {% block basket_form %}{% include "catalogue/partials/add_to_basket_form.html" %}{% endblock %} {% block append_product_basket_form %}{% endblock %} {% endblock %}
{% endblock %}
{% block product_description %} {% if product.description %}

{% trans "Product Description" %}

{{ product.description|safe }}

{% endif %} {% endblock %} {% block product_info %}

{% trans "Product Information" %}

{% block product_info_rows %} {% block product_default_info %} {% if product.upc %} {% endif %} {% endblock %} {% purchase_info_for_product request product as session %} {% block product_price_info %} {% if session.price.exists %} {% if session.price.is_tax_known %} {% endif %} {% endif %} {% endblock %} {% block product_availability_info %} {% endblock %} {% block product_attributes_info %} {% for av in product.get_attribute_values %} {% endfor %} {% endblock %} {% block product_reviews_info %} {% iffeature "reviews" %} {% endiffeature %} {% endblock %} {% endblock %}
{% trans "UPC" %}{{ product.upc }}
{% trans "Product Type" %}{{ product.get_product_class.name }}
{% trans "Price (excl. tax)" %}{{ session.price.excl_tax|currency:session.price.currency }}
{% 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 }}
{% trans "Availability" %} {{ session.availability.message }}
{{ av.attribute.name }} {{ av.value_as_html }}
{% trans "Number of reviews" %} {{ product.num_approved_reviews }}
{% endblock %} {% iffeature "reviews" %} {% block product_review %}
{% if product.num_approved_reviews > 3 %} {% trans "See all reviews" %} {% endif %}

{% trans "Customer Reviews" %}

{% if product.num_approved_reviews == 0 %}

{% if product|is_review_permitted:user %} {% url 'catalogue:reviews-add' product_slug=product.slug product_pk=product.id as add_review_url %} {% blocktrans %}This product does not have any reviews yet - be the first to write one. {% endblocktrans %} {% else %} {% trans "This product does not have any reviews yet" %}. {% endif %}

{% else %}
    {% for review in product.reviews.approved.all|slice:":3" %}
  1. {% include 'catalogue/partials/review.html' %}
  2. {% endfor %}
{% endif %}
{% endblock product_review %} {% endiffeature %} {% block recommended %} {% with recommended_products=product.sorted_recommended_products|slice:":6" %} {% if recommended_products %}

{% trans "Recommended items" %}

{% endif %} {% endwith %} {% endblock recommended %} {% recently_viewed_products current_product=product %}
{% endblock content %}