Tabelle der Bestellpositionen
Das Twig-Template der Positionstabelle
{% if hueRenderPhase == 'table' and config.displayLineItems %}
<table class="line-item-table">
<thead>
<tr class="line-item-table-header">
<th class="product-number">Prod.-Nr.</th>
<th class="product-label">Produkt / Dienst</th>
<th class="numbers">Anzahl</th>
{% if config.displayPrices %}
<th class="numbers">USt.</th>
<th class="numbers incl-vat">Stückpreis</th>
<th class="numbers incl-vat">Gesamt</th>
{% endif %}
</tr>
</thead>
{% elseif hueRenderPhase == 'position' and config.displayLineItems %}
<tr class="line-item">
<td>{{ lineItem.payload.productNumber }}</td>
<td>{{ lineItem.label }}</td>
<td class="align-right">{{ lineItem.quantity }}</td>
{% if config.displayPrices %}
<td class="align-right">{% for tax in lineItem.price.taxRules %}{{ tax.taxRate }} %{% endfor %}</td>
<td class="align-right">{{ lineItem.unitPrice|currency(currencyIsoCode, languageId) }}</td>
<td class="align-right">{{ lineItem.totalPrice|currency(currencyIsoCode, languageId) }}</td>
{% endif %}
</tr>
{% elseif hueRenderPhase == 'shipping' and config.displayLineItems %}
<tr class="line-item">
<td></td>
<td>{{ 'document.lineItems.shippingCosts'|trans }} - {{ order.deliveries.first.shippingMethod.translated.name }}</td>
<td class="align-right">1</td>
{% if config.displayPrices %}
<td class="align-right">{% for tax in order.deliveries.first.shippingCosts.calculatedTaxes %}{{ tax.taxRate }} %{% endfor %}</td>
<td class="align-right">{{ order.shippingTotal|currency(currencyIsoCode, languageId) }}</td>
<td class="align-right">{{ order.shippingTotal|currency(currencyIsoCode, languageId) }}</td>
{% endif %}
</tr>
{% endif %}Häufig genutzte Variablen
Variable
Beschreibung
Die Styles der Positionstabelle
Standardvorlagen laden
Zuletzt aktualisiert