{% extends CMS_TEMPLATE %} {% load i18n thumbnail cms_tags pcart_core %} {% block sidebar_wrapper %}{% endblock %} {% block main_content_classes %}col-sm-12{% endblock %} {% block content %}

{% trans "Checkout" %}

{% if cart.item_count > 0 %}
{% csrf_token %}
{% if user.is_anonymous %}

{% trans "If you already have an account use this link for login:" %} {% trans "Login" %}

{% endif %} {% include "forms/form_fields.html" with form=checkout_form show_fields='name,email,phone' %}
{% include "forms/form_fields.html" with form=checkout_form show_fields='shipping_method' %} {% save checkout_form.initial|get_element:"shipping_method" as initial_shipping_method %}

{% include "forms/form_fields.html" with form=checkout_form show_fields='payment_method' %}

{% include "forms/form_fields.html" with form=checkout_form show_fields='note,accept_toc' %}
{% for item in cart.items %}
{% with image=item.product.images.first %} {% if image %}{% endif %} {% endwith %}
{{item.object.title}}

{{item.quantity}} × {{item.price|money}} = {{item.line_price|money}}

{% endfor %}

{% trans "Return to cart" %}


{% trans "Subtotal" %}: {{cart.total_price|money}}

{% if cart.total_weight > 0 %}

{% trans "Weight" %}: {{cart.total_weight|weight}}

{% endif %}
{% else %}

{% trans "It appears that your cart is currently empty!" %}

{% trans 'You can continue browsing here.' %}

{% endif %}
{% endblock %}