{% extends 'oscar/basket/partials/basket_content.html' %} {% load i18n thumbnail purchase_info_tags widget_tweaks currency_filters display_tags %} {% 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 emptybasket %}

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

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