{% extends "oscar/layout.html" %} {% load history_tags %} {% load currency_filters %} {% load reviews_tags %} {% load product_tags %} {% load display_tags %} {% load i18n %} {% load purchase_info_tags %} {% block title %} {{ product.get_meta_title }} | {{ block.super }} {% endblock %} {% block description %} {{ product.get_meta_description }} {% endblock %} {% block breadcrumbs %} {% endblock %} {% block header %} {% endblock header %} {% block content %}
{% block product_gallery %}
{% include "oscar/catalogue/partials/gallery.html" %}
{% endblock %} {% block product_main %}
{% comment %} This is a bit 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 %}

{{ product.get_title }}

{% block product_stock_record %} {% include "oscar/catalogue/partials/stock_record.html" with verbose=1 %} {% endblock %} {% iffeature "reviews" %} {% include "oscar/catalogue/reviews/partials/review_stars.html" %} {% endiffeature %}
{% if not product.is_parent %} {% block product_basket_form %} {% include "oscar/catalogue/partials/add_to_basket_form.html" %} {% endblock %} {% else %} {% block variants %}

{% trans 'Variants:' %}

{% for child in product.children.public %} {% purchase_info_for_product request child as child_session %} {% if child_session.availability.is_available_to_buy %} {{ child.get_title }}
{% endif %} {% endfor %} {% endblock %} {% endif %}
{% endblock %}
{% block product_description %} {% if product.description %}

{% trans "Product Description" %}

{{ product.description|safe }}

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

{% trans "Product Information" %}

{% if product.upc %} {% endif %} {% purchase_info_for_product request product as session %} {% if session.price.exists %} {% if session.price.is_tax_known %} {% endif %} {% endif %} {% for av in product.get_attribute_values %} {% endfor %} {% iffeature "reviews" %} {% endiffeature %}
{% 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" %}{{ 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 'oscar/catalogue/partials/review.html' %}
  2. {% endfor %}
{% endif %}
{% endblock product_review %} {% endiffeature %} {% with recommended_products=product.sorted_recommended_products|slice:":6" %} {% if recommended_products %}

{% trans "Recommended items" %}

{% endif %} {% endwith %} {% recently_viewed_products current_product=product %}
{% endblock content %} {% block extrascripts %} {{ block.super }} {% endblock %}