{% load i18n %} {% load image_tags %} {% load currency_filters %} {% load purchase_info_tags %} {% load widget_tweaks %} {% 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_headers %}

{% trans "Items to buy now" %}

{% trans "Quantity" %}

{% trans "Price" %}

{% trans "Total" %}

{% endblock %} {% block basket_form_main %}
{% 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 %}
{{ form.id }} {% with image=product.primary_image %} {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} {{ product.get_title }} {% endwith %}

{{ line.description }}

{{ session.availability.message }}

{% render_field form.quantity class+="form-control" %}
{% trans "Remove" %} {% if user.is_authenticated %} | {% trans "Save for later" %} {% endif %}
{{ form.save_for_later }} {{ form.DELETE }}
{% for field_errors in form.errors.values %} {% for error in field_errors %} {{ error }} {% endfor %} {% endfor %}
{% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %}

{% else %}

{% trans "Price" %}: {% if line.is_tax_known %} {{ line.unit_price_incl_tax|currency:line.price_currency }} {% else %} {{ line.unit_price_excl_tax|currency:line.price_currency }} {% endif %}

{% endif %}
{% if not line.line_price_incl_tax and not line_price_excl_tax %}

{% else %}

{% trans "Total" %}: {% 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 %}
{% endwith %} {% endfor %}
{% endblock %}
{% block vouchers %} {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #} {% if voucher_form %}

{% trans "Voucher/promo code" %}

{% endif %} {% endblock vouchers %} {% block baskettotals %}

{% trans "Totals" %}

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

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

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

{% trans "Items to buy later" %}

{% trans "Items" %}
{% trans "Price" %}
 
{% csrf_token %} {{ saved_formset.management_form }} {% for form in saved_formset %} {% purchase_info_for_product request form.instance.product as session %}
{{ form.id }} {% with image=form.instance.product.primary_image %} {% oscar_thumbnail image.original "100x100" upscale=False as thumb %} {{ form.instance.product.get_title }} {% endwith %}

{{ form.instance.description }}

{{ session.availability.message }}

{% trans "Remove" %}
{{ form.move_to_basket }} {{ form.DELETE }}
{% purchase_info_for_product request form.instance.product as saved %}

{% if saved.price.is_tax_known %} {{ saved.price.incl_tax|currency:saved.price.currency }} {% else %} {{ saved.price.excl_tax|currency:saved.price.currency }} {% endif %}

{% endfor %}
{% endif %} {% endblock %}