Ubuntu

­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­­
  • {# Ecommerce Abandoned Cart / Ecommerce Order #} {% if action.type == 'ecommerceOrder' %} {{ 'Goals_EcommerceOrder'|translate }} ({{ action.orderId }}) {% else %} {{ 'Goals_AbandonedCart'|translate }} {# TODO: would be nice to have the icons Orders / Cart in the ecommerce log footer #} {% endif %}

    {% if action.type == 'ecommerceOrder' %} {# spacing is important for tooltip to look nice #} {% set ecommerceOrderTooltip %}{{ 'General_ColumnRevenue'|translate }}: {{ action.revenue|money(visitInfo.idSite)|raw }} {% if action.revenueSubTotal is not empty %} - {{ 'General_Subtotal'|translate }}: {{ action.revenueSubTotal|money(visitInfo.idSite)|raw }}{% endif %} {% if action.revenueTax is not empty %} - {{ 'General_Tax'|translate }}: {{ action.revenueTax|money(visitInfo.idSite)|raw }}{% endif %} {% if action.revenueShipping is not empty %} - {{ 'General_Shipping'|translate }}: {{ action.revenueShipping|money(visitInfo.idSite)|raw }}{% endif %} {% if action.revenueDiscount is not empty %} - {{ 'General_Discount'|translate }}: {{ action.revenueDiscount|money(visitInfo.idSite)|raw }}{% endif %} {% endset %} {{ 'General_ColumnRevenue'|translate }}: {% else %} {% set revenueLeft %}{{ 'General_ColumnRevenue'|translate }}{% endset %} {{ 'Goals_LeftInCart'|translate(revenueLeft) }}: {% endif %} {{ action.revenue|money(visitInfo.idSite)|raw }} {% if action.type == 'ecommerceOrder' %} {% endif %}, {{ 'General_Quantity'|translate }}: {{ action.items }} {# Ecommerce items in Cart/Order #} {% if action.itemDetails is not empty %}

      {% for product in action.itemDetails %}
    • {{ product.itemSKU }}{% if product.itemName is not empty %}: {{ product.itemName }}{% endif -%} {%- if product.categories is defined and product.categories is not empty %} ({% for category in product.categories %}{{ category }}{% if not loop.last %}, {% endif %}{% endfor %}){% endif %}, {{ 'General_Quantity'|translate }}: {{ product.quantity }}, {{ 'General_Price'|translate }}: {{ product.price|money(visitInfo.idSite)|raw }}
    • {% endfor %}
    {% endif %}