{% load i18n %} {% load thumbnail %} {% load currency_filters %} {% load purchase_info_tags %} {% load widget_tweaks %} {% load display_tags %} {% 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 %}
{% 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 %} {% thumbnail image.original "100x100" upscale=False as thumb %} {{ product.get_title }} {% endthumbnail %} {% endwith %}
{% block productdescription %} {{ line.product.title }} {% if line.attributes.all %} {% for option in line.attributes.all %} {{option.option.name}}: {{option.display_value}} {% endfor %} {% endif %} {% endblock %}
{% render_field form.quantity class+="form-control" %}
{% iffeature "wishlists" %}{% if user.is_authenticated %} {% trans "Save for later" %} {% endif %}{% endiffeature %} {% trans 'Remove' %}
{{ form.save_for_later }} {{ form.DELETE }}
{% for field_errors in form.errors.values %} {% for error in field_errors %} {{ error }} {% endfor %} {% endfor %}
{% 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 %}
{% endwith %} {% endfor %}
{% endblock %}
{% block baskettotals %}

{% trans "Totals" %}

{% include 'basket/partials/basket_totals.html' with editable=1 %} {% block formactions %} {% endblock formactions %}
{% block vouchers %} {# Hide the entire section if a custom BasketView doesn't pass in a voucher form #} {% if voucher_form %}
{% csrf_token %} {% include "partials/form_fields.html" with form=voucher_form %}
{% endif %} {% endblock vouchers %} {% endblock baskettotals %}
{% 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" %}

{% 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 %} {% thumbnail image.original "100x100" upscale=False as thumb %} {{ form.instance.product.get_title }} {% endthumbnail %} {% endwith %}

{{ form.instance.description }}

{% 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 %}