{% set cartSession = app.session.get(app.request.get('channelEcomId') ~ '_' ~ 'ecom_cart') %} {% if cartSession is not empty and cartSession['items'] is not empty %}

{{ 'Cart' | trans }}

{% set sum = 0 %} {% for key, item in cartSession['items'] %} {% set sum = sum + item['subTotal'] %} {% endfor %}
{{ 'Product' | trans }} {{ 'Quantity' | trans }} {{ 'Price' | trans }}
{% if item['addOn'] == false %}
{% if item['productThumbnail'] is not empty %} {% endif %}

{{ item['productName'] }} {{ item['size'] is not empty ? ' - ' ~ item['size'] : '' }}
{{ 'Sku' | trans }}: {{ item['productSku'] }}

{% else %}

{{ item['productName'] }} - {{ item['productSku'] }} {% if item['addOnInputAllLetterInputCapital'] %}
{{ item.addOnText | upper }} {% else %}
{{ item.addOnText }} {% endif %}

{% endif %}
{{ item['productPriceEcomIncTax'] }} {{ 'kr' | trans }}
{{ 'Quantity' | trans }} {{ cartSession['quantity'] }}
{{ 'Sum' | trans }} {{ sum }} {{ 'kr' | trans }}
{% else %}
{{ 'Cart is empty. Please add product before checkout.' | trans | raw }}
{% endif %}