{% extends "shop/_layouts/main" %} {% block main %}

Here’s what’s in your cart

{% if cart.lineItems|length %} {{ redirectInput('shop/cart') }} {{ csrfInput() }} {% 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 %} {% if not lineItemHasErrors %} {% for adjustment in item.adjustments %} {% endfor %} {% endif %} {% endfor %} {% if not lineItemHasErrors %} {% for adjustment in cart.orderAdjustments %} {% endfor %} {% endif %}
Product Qty Price
{{ item.description }}
({{ item.sku }})
{{ item.options|json_encode }}
{% if item.options.giftWrapped is defined %} {% endif %} {% if item.options.donationAmount 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) }}
Price Subtotal: {{ item.subtotal|commerceCurrency(cart.currency) }}
{% endif %} {% endif %} {% for sale in item.purchasable.sales %} {% if loop.first %} Sales Applied: {% endif %} {{ sale.name }}
{% endfor %}
{{ adjustment.type }} {{ adjustment.name }}
({{ adjustment.description }} )
{{ adjustment.amount|commerceCurrency(cart.currency) }}
{{ adjustment.type }} {{ adjustment.name }}
({{ adjustment.description }} )
{{ adjustment.amount|commerceCurrency(cart.currency) }}
{% if not lineItemHasErrors %} Item Sub Total: {{ cart.itemSubTotal|commerceCurrency(cart.currency) }}

Built in Adjustment Totals
Total Discount: {{ cart.adjustmentsTotalByType('discount')|commerceCurrency(cart.currency) }}
Total Shipping: {{ cart.adjustmentsTotalByType('shipping')|commerceCurrency(cart.currency) }}
Total Tax: {{ cart.adjustmentsTotalByType('tax')|commerceCurrency(cart.currency) }}
Total Tax (inc): {{ cart.adjustmentsTotalByType('tax', true)|commerceCurrency(cart.currency) }}
Total: {{ cart.total }}

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

{% endif %}
{# Update Coupon form uses the single update controller action: #} {% if cart.getFirstError('couponCode') %} {{ cart.getFirstError('couponCode') }} {% 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 %}