{% load i18n %} {% load image_tags %} {% load currency_filters %} {% load purchase_info_tags %} {% load extra_purchase_info_tags %} {% load widget_tweaks %} {% load ocyanjson %} {% if basket_warnings %}
{% trans "Important messages about items in your basket" %}
{% for warning in basket_warnings %}
{{ warning }}
{% endfor %} {% endif %} {% if upsell_messages %}

{% trans "You could be missing out on offers!" %}

{% for upsell in upsell_messages %} {% blocktrans with message=upsell.message url=upsell.offer.get_absolute_url offer_name=upsell.offer.name %}
{{ message }} to qualify for the {{ offer_name }} special offer
{% endblocktrans %} {% endfor %}
{% endif %} {% if not basket.is_empty %}
{% block basket_form_main %}
{% block basket_header %}

{% trans "Basket" %} ({{ request.basket.num_lines }} item{% if not request.basket.num_lines == 1 %}s{% endif %})

{% endblock %}
{% csrf_token %} {{ formset.management_form }} {% for form in formset %} {% with line=form.instance product=form.instance.product %} {% purchase_info_for_line request line as session %}
{% block product_image %}
{{ form.id }} {% with image=product.primary_image %} {% oscar_thumbnail image.original "350x350" upscale=False as thumb %} {{ product.get_title }} {% endwith %}
{% endblock %}
{% block product_title %}
{{ line.product.title }}
{% endblock %} {% block product_availability %}

{{ session.availability.message }}

{% endblock %} {% block product_description %}
{{line.product.description|safe|striptags|truncatechars:100}}
{% endblock %} {% block product_attributes %} {% if line.attributes.exists %}
{% for option in line.attributes.all %}
{{ option.option.name }}
{{ option.display_value }}
{% endfor %}
{% endif %} {% endblock %}
{% render_field form.quantity class+="form-control" %}
{% block basket_line_actions %}
{% if user.is_authenticated %} {% trans "Save for later" %} | {% endif %} {% trans "Remove" %}
{{ form.save_for_later }} {{ form.DELETE }}
{% for field_errors in form.errors.values %} {% for error in field_errors %} {{ error }} {% endfor %} {% endfor %}
{% endblock basket_line_actions %}
{% if not line.line_price_incl_tax and not line_price_excl_tax %}

{% else %}

{% total_purchase_info_for_line request line as session %} {% if session.price.from_price %} {{session.price.from_price.incl_tax|currency:session.price.currency}} {% endif %} {% include "oscar/catalogue/partials/price.html" %}

{% endif %}
{% endwith %} {% endfor %}
{% block savedbasket %} {% if user.is_authenticated and saved_formset %}

{% trans "Items to buy later" %}

{% csrf_token %} {{ saved_formset.management_form }} {% for form in saved_formset %} {% with line=form.instance product=form.instance.product %} {% purchase_info_for_line request line as session %}
{{ form.id }} {% with image=product.primary_image %} {% oscar_thumbnail image.original "350x350" upscale=False as thumb %} {{ product.get_title }} {% endwith %}
{{ line.product.title }}

{{ session.availability.message }}

{{line.product.description|safe|striptags|truncatechars:100}}
{% if line.attributes.exists %}
    {% for option in line.attributes.all %}
  • {{ option.option.name }} {{ option.display_value }}
  • {% endfor %}
{% endif %}
{% if not line.line_price_incl_tax and not line_price_excl_tax %}

{% else %}

{% if line.is_tax_known %} {{ line.line_price_incl_tax|currency:line.price_currency }} {% else %} {{ line.line_price_excl_tax|currency:line.price_currency }} {% endif %}

{% endif %}
{% if user.is_authenticated %} {% trans "Move to basket" %} | {% endif %} {% trans "Remove" %}
{{ form.move_to_basket }} {{ form.DELETE }}
{% for field_errors in form.errors.values %} {% for error in field_errors %} {{ error }} {% endfor %} {% endfor %}
{% endwith %} {% endfor %}
{% endif %} {% endblock %}
{% endblock %} {% block basket_form_right_column %}
{% ocyanjson "oscar_checkout" "show_voucher_block" True as show_voucher_block %} {% if voucher_form and show_voucher_block %}

{% trans "Voucher/promo code" %}

{% block vouchers %} {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #} {% trans "Voucher/promo code" as promo_code %}
{% csrf_token %}
{% include "oscar/partials/form_field.html" with field=voucher_form.code nolabel=True placeholder=promo_code form_clean=True %}
{% endblock vouchers %}
{% endif %}

{% trans "Basket total" %}

{% block baskettotals %}{% include 'oscar/basket/partials/basket_totals.html' with editable=1 %}{% endblock baskettotals %} {% block formactions %} {% endblock formactions %}
{% endblock %}
{% else %} {% block emptybasket %}

{% trans "Your basket is empty." %}

{% trans "Continue shopping" %}
{% endblock %} {% endif %}