{% if cart_warnings %} {% for warning in cart_warnings %} {% endfor %} {% endif %} {% if upsell_messages %} {% for upsell in upsell_messages %} {% endfor %} {% endif %} {% include "partials/alert_messages.html" %} {% if not cart.is_empty %} {% block cart_form_headers %} {% endblock %} {% block cart_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 %} {% endwith %} {% endfor %}
{% t "tables.heading.product_name" %} {% t "tables.heading.quantity" %} {% t "tables.heading.schedule" %} {% t "tables.heading.total" %}  
{{ form.id }} {% with image=product.primary_image %} {% image_thumbnail image.original "70x70" crop="center" upscale=False as thumb %} {% endwith %}
{{ line.description }}
{% t "tables.content.price" %}: {% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %} — {% else %} {% 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 line.discount_value %}
{% t "tables.content.discount" %}: {{ line.discount_value|currency:line.price_currency }}
{% endif %}
{% include 'partials/form_field.html' with field=form.quantity nolabel=True size='sm' %} {% include 'partials/form_field.html' with field=form.subscription_range nolabel=True size='sm' %}
{{ line.line_price_incl_tax_incl_discounts|currency:line.price_currency }}
{% block formactions %} {% endblock formactions %} {% endblock %} {% else %} {% block emptycart %}

{% t "order.cart.cart_empty" %} {% t "order.cart.continue_shopping" %}

{% endblock %} {% endif %} {% block savedcart %} {% if user.is_authenticated and saved_formset %}
{% csrf_token %} {{ saved_formset.management_form }} {% for form in formset %} {% with line=form.instance product=form.instance.product %} {% purchase_info_for_line request line as session %} {% endwith %} {% endfor %}
{% t "tables.heading.items_to_buy_now" %} {% t "tables.heading.quantity" %} {% t "tables.heading.price" %} {% t "tables.heading.discount" %} {% t "tables.heading.total" %}  
{{ form.id }} {% with image=product.primary_image %} {% image_thumbnail image.original "150x150" upscale=False as thumb %} {% endwith %}
{{ line.description }}
{% render_field form.quantity size='sm' %}
{% if not line.unit_price_incl_tax and not line.unit_tax_excl_tax %} — {% else %} {% 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 %} {{ line.discount_value|currency:line.price_currency }} {{ line.line_price_incl_tax_incl_discounts|currency:line.price_currency }} {% t "tables.actions.remove" %}
{{ form.DELETE }}
{% endif %} {% endblock %}
{% block cart_summary %} {% include 'partials/cart_summary.html' with editable=1 %} {% endblock %}