{% extends "shop/_layouts/main" %} {% block main %}
{% if cart.lineItems|length %} {% set lineItemHasErrors = false %} {% for item in cart.lineItems %} {% if item.hasErrors() %} {# if the line item has errors lets record it so we can hide totals later (since they wont make sense) #} {% set lineItemHasErrors = true %} {% endif %} {% endfor %} {% if not lineItemHasErrors %} {% for adjustment in cart.adjustments %} {% endfor %} {% endif %}
Product Qty Price
{{ item.description }}
({{ item.sku }})
{{ item.options|json_encode }}
{{ getCsrfInput() }}
{{ getCsrfInput() }} {% if item.options.giftWrapped is defined %} {% endif %}
{% if not lineItemHasErrors %} {% if item.onSale %} Price: {{ item.price|commerceCurrency(cart.currency) }}
Sale Off: {{ item.saleAmount|commerceCurrency(cart.currency) }}
Sale Price {{ item.salePrice|commerceCurrency(cart.currency) }}
Sale Price Subtotal: {{ item.subtotal|commerceCurrency(cart.currency) }}
{% else %} Price: {{ item.price|commerceCurrency(cart.currency) }}
Sale Price {{ item.salePrice|commerceCurrency(cart.currency) }}
Sale Price Subtotal: {{ item.subtotal|commerceCurrency(cart.currency) }}
{% endif %} Discount: {{ item.discount|commerceCurrency(cart.currency) }}
Taxes: {{ item.tax|commerceCurrency(cart.currency) }}
Taxes (Inc): {{ item.taxIncluded|commerceCurrency(cart.currency) }}
Shipping: {{ item.shippingCost|commerceCurrency(cart.currency) }}
Total: {{ item.total|commerceCurrency(cart.currency) }}
{% endif %}
{{ adjustment.type }} {{ adjustment.name }}
({{ adjustment.description }})
{{ adjustment.amount|commerceCurrency(cart.currency) }}
{# Remove all line items to empty the cart: #}
{{ getCsrfInput() }}
{# Update Coupon form uses the single update controller action: #} {% if cart.getError('couponCode') %}{{ cart.getError('couponCode') }}{% endif %}
{{ getCsrfInput() }}
{% if not lineItemHasErrors %} Item Sub Total: {{ cart.itemSubTotal|commerceCurrency(cart.currency) }}
Item Total: {{ cart.itemTotal|commerceCurrency(cart.currency) }}

Base Discount: {{ cart.baseDiscount|commerceCurrency(cart.currency) }}
Base Shipping Cost: {{ cart.baseShippingCost|commerceCurrency(cart.currency) }}
Base Tax: {{ cart.baseTax|commerceCurrency(cart.currency) }}
Base Tax Included: {{ cart.baseTaxIncluded|commerceCurrency(cart.currency) }}

Total Discount: {{ cart.totalDiscount|commerceCurrency(cart.currency) }}
Total Shipping: {{ cart.totalShippingCost|commerceCurrency(cart.currency) }}
Total Tax: {{ cart.totalTax|commerceCurrency(cart.currency) }}
Total Tax (inc): {{ cart.totalTaxIncluded|commerceCurrency(cart.currency) }}

Total Price: {{ cart.totalPrice|commerceCurrency(cart.currency) }}

{% endif %}
{% if not lineItemHasErrors %} Checkout {% endif %} {% endif %} {% if not cart.lineItems|length %}

You have no items in your cart, add some on the products page.

{% endif %}
{% endblock %}