{% extends "customer/baseaccountpage.html" %} {% load currency_filters %} {% load display_tags %} {% load i18n %} {% load reviews_tags %} {% block extra_breadcrumbs %}
  • {% trans 'Order history' %}
  • {% endblock %} {% block tabcontent %}

    {{ order.number }}

    {% for line in order.lines.all %} {% with product=line.product %} {% comment %} {% endcomment %} {% endwith %} {% endfor %} {% with discounts=order.basket_discounts %} {% block discount_totals %} {% if discounts %} {% for discount in discounts %} {% endfor %} {% endif %} {% endblock discount_totals %} {% block basket_total %} {% if discounts %} {% else %} {% endif %} {% endblock basket_total %} {% endwith %} {% block shipping_totals %} {% if order.has_shipping_discounts %} {% for discount in order.shipping_discounts %} {% endfor %} {% else %} {% endif %} {% endblock %} {% block order_total %} {% endblock order_total %}
    {% trans 'Product' %} {% trans 'Dispatch date' %} {% trans 'Qty' %} {% trans 'Line price excl. tax' %} {% trans 'Line price incl. tax' %}
    {% if product %}

    {{ line.product.get_title }} {% for attribute in line.attributes.all %} {% if attribute.option.code == 'subscription-interval' %} {{ attribute.option.name }}: Every {{ attribute.value }} days {% elif attribute.option.code == 'surprise' %} {% if line.product.subscription == True %} {{ attribute.option.name }}: {% if attribute.value %}Yes{% else %}No {% endif %} {% endif %} {% else %} {{ attribute.option.name }}: {{ attribute.value }} {% endif %} {% endfor %} {% for item in line.product.attribute_values.all %} {% if item.attribute.use_for_variations %} {{ item.attribute }}: {{ item.value }} {% endif %} {% endfor %}

    {% comment %} {% iffeature "reviews" %} {% if product|is_review_permitted:user %} {% trans 'Write a review' %} {% endif %} {% endiffeature %} {% endcomment %} Write a review {% else %}

    {{ line.description }}

    {% endif %}
    {{ line.est_dispatch_date|default:"-" }} {{ line.quantity }} {{ line.line_price_before_discounts_excl_tax|currency:order.currency }} {{ line.line_price_before_discounts_incl_tax|currency:order.currency }} {% if product %}
    {% csrf_token %}
    {% else %} {% trans 'Not available anymore' %} {% endif %}
    {% trans "Basket total (excl. discounts)" %} {{ order.basket_total_before_discounts_incl_tax|currency:order.currency }}
    {% trans "Discount" %} {{ discount.offer_name }} - {{ discount.amount|currency:order.currency }}
    {% trans "Basket total (inc. discounts)" %} {{ order.basket_total_incl_tax|currency:order.currency }}
    {% trans "Basket total" %} {{ order.basket_total_incl_tax|currency:order.currency }}
    {% trans "Shipping total (excl. discounts)" %} {{ order.shipping_before_discounts_incl_tax|currency:order.currency }}
    {% trans "Discount" %} {{ discount.offer_name }} - {{ discount.amount|currency:order.currency }}
    {% trans "Shipping total (inc. discounts)" %} {{ order.shipping_incl_tax|currency:order.currency }}
    {% trans "Shipping total" %} {{ order.shipping_incl_tax|currency:order.currency }}
    {% trans 'Order total' %} {{ order.total_incl_tax|currency:order.currency }}
    {% comment %} {% block order_actions %}
    {% csrf_token %}
    {% endblock order_actions %} {% endcomment %} {% if order.loyalty_points.exists %}
    You have earned {{ order.loyalty_points.first.points }} loyalty points from this order {% endif %}

    {% trans 'Shipping Method' %}

    {{ order.shipping_method }}
    {{ shipping_class.tracking_url }} (Tracking No. {% if shipping_class.tracking_available %} {% for item in order.shipping_events.all %}{{ item.notes }} {% endfor %}{% endif %})


    {% trans 'Shipping Address' %}

    {% trans 'Address' %} {% trans 'Contact Number' %} {% trans 'Shipping Notes' %}
    {% for field in order.shipping_address.active_address_fields %} {{ field }}
    {% endfor %}
    {{ order.shipping_address.phone_number|default:"-" }} {{ order.shipping_address.notes|linebreaks }}
    {% endblock tabcontent %}