HTML Mail

1. Einheiten ausgeben

Suchen nach:

{{ lineItem.label|u.wordwrap(80) }}<br>

Danach diesen Code einfügen:

{# Start neonlines plugin #}
{% if nestedItem.payload.neon_unitarticles is defined and
    nestedItem.payload.neon_unitarticles.dimensions is defined %}
       {% if nestedItem.payload.neon_unitarticles is defined and nestedItem.payload.neon_unitarticles.surcharges is defined %}
        {% for surcharge in nestedItem.payload.neon_unitarticles.surcharges %}
            {% if surcharge.value > 0 %}
                <div >
                    <strong >incl. {{ surcharge.label }}:</strong>
                    <span >
                              {{ surcharge.value|currency(currencyIsoCode)}}
                            </span>
                </div>
            {% endif %}
        {% endfor %}
    {% endif %}
{% endif %}
{# End neonlines plugin #}

2. Anzahl ausgeben

Suchen nach:

 {{ nestedItem.quantity }}

und durch diesen Code ersetzen:

{# Start neonlines plugin #}
 {% if nestedItem.payload.neon_unitarticles is defined and nestedItem.payload.neon_unitarticles.isQuantityHidden %}
     1
 {%  else %}
     {{ nestedItem.quantity }}
 {%  endif %}
 {# End neonlines plugin #}

Last updated