{% extends "layout.html" %} {% load currency_filters %} {% load history_tags %} {% load basket_tags %} {% block header %}

{{ product.get_title }}

{% endblock header %} {% block content %}
{% for image in product.images.all %} {% if image.caption %}
{{ image.caption }}
{% endif %} {% endfor %}
{% if product.stockrecord %} {% endif %} {% for attribute in product.attributes.all %} {% endfor %}
Product details
UPC{{ product.upc }}
Product class{{ product.product_class.name }}
Price (excl. tax){{ product.stockrecord.price_incl_tax|currency }}
Price (incl. tax){{ product.stockrecord.price_excl_tax|currency }}
Availability {{ product.stockrecord.availability }}
Product type {% if product.is_group %}Product group{% else %}{% if product.is_variant %}Variant{% else %}Stand-alone{% endif %}{% endif %}
{{ attribute.type.name }} {{ attribute.value }}
Num reviews {{ reviews.count }}
{% if product.stockrecord %} {% basket_form product as basket_form %}
{% csrf_token %} {{ basket_form.as_p }}
{% endif %}

Categories

{% for category in product.categories.all %}

{% for c in category.get_ancestors %} {% if not forloop.first %} > {% endif %}{{ c.name }} {% endfor %}

{% endfor %} {% block product_review %}

Customer Reviews

Read customer reviews on this product. If you have read this book, why not post your own review?

Add a review

{% with product.reviews.all as reviews %} {% if reviews %}
{% for review in reviews|slice:":3" %}

{{ review.title }} ({{ review.score }}/5)

Reviewed by {{ review.get_reviewer_name }}

{{ review.date_created }}

{{ review.body|linebreaks }}

Permalink {% include 'reviews/_vote_bit.html' %} {% if review.has_votes %}

{{ review.num_up_votes }} customer{{ review.num_up_votes|pluralize }} found this review helpful.

{% endif %}
{% endfor %}

See all reviews.

{% endif %} {% endwith %} {% endblock product_review %} {% if product.related_items.count %}

Related items

{% endif %} {% if product.recommended_items.count %}

Recommended items

{% endif %} {% recently_viewed_products %} {% endblock content %}