Product
Price
Quantity
Total
{% for key, item in cart.lineItems %} {% set product = item.purchasable.product %}
{% if product %} {{ product.gridImage ? product.gridImage.altText }} {% endif %}
{% if product %} {{ product.title }} {% else %} {{ item.purchasableName }} {% endif %} {% if item.options is not empty %}
{% for label, value in item.options %}
{{ label }}: {{ value }}
{% endfor %}
{% endif %} {% if item.attachments is not empty %}
Attachments {% for attachment in item.attachments %} {% endfor %}
{% endif %}
{% if item.unitPrice != item.discountedUnitPrice %} {{ item.unitPrice|commerce_currency }} {% endif %} {{ item.discountedUnitPrice|commerce_currency }}
{% if editable %}
{{ form_widget(form.lineItems[key].quantity) }} {% set ajaxBtnOptions = {'action': path('cart_item_remove', {'id': item.id})} %}
{{ form_errors(form.lineItems[key].quantity) }} {% else %} {{ item.quantity }} {% endif %}
{{ item.subtotal|commerce_currency }}
{% if editable %}
{{ form_errors(form.lineItems[key].quantity) }}
{% endif %}
{% endfor %}
{% if editable %} {% endif %}
Subtotal
{{ cart.lineItemsSubtotal|commerce_currency }}
{% if cart.freeShipping %}
Shipping
Free
{% elseif cart.shippingTotal|commerce_to_float %}
Shipping
{{ cart.shippingTotal|commerce_currency }}
{% endif %} {% if cart.promotionTotal|commerce_to_float %}
Discounts
{{ cart.promotionTotal|commerce_currency }}
{% endif %}
GST (included)
{{ cart.taxTotal|commerce_currency }}
Grand Total
{{ cart.total|commerce_currency }}