{% load i18n %} {% load lfs_tags %}
{% trans 'General' %}
{% trans 'ID' %}: {{ cart.id }}
{% trans 'Customer' %}: {% if customer.selected_invoice_address %}
{{ customer.selected_invoice_address.firstname }} {{ customer.selected_invoice_address.lastname }} ({{ customer.selected_invoice_address.email }})
{{ customer.selected_invoice_address.company_name }}
{{ customer.selected_invoice_address.street }}
{{ customer.selected_invoice_address.city }}
{{ customer.selected_invoice_address.state }}
{{ customer.selected_invoice_address.zip_code }}
{{ customer.selected_invoice_address.country }}
{{ customer.selected_invoice_address.phone }}
{% else %} --- {% endif %}
{% trans 'Creation date' %}: {{ cart.creation_date|date:_("DATETIME_FORMAT") }}
{% trans 'Modification date' %}: {{ cart.modification_date|date:_("DATETIME_FORMAT") }}
{% trans 'Items' %}: {{ cart.get_amount_of_items }}
{% trans 'Total' %}: {{ total|currency }}
{% if cart.items %} {% for item in cart.items %} {% endfor %}
{% trans 'ID' %} {% trans 'Creation date' %} {% trans 'Product' %} {% trans 'Price' %} {% trans 'Amount' %} {% trans 'Total' %}
{{ item.id }} {{ item.creation_date|date:_("DATETIME_FORMAT") }} {{ item.product.get_name }} {{ item.product|get_price:request|currency }} {{ item.amount }} {{ item|get_price:request|currency }}
{% else %} {% trans 'This cart has no items' %} {% endif %}