Line items table
The Twig template of the line items table
{% if hueRenderPhase == 'table' and config.displayLineItems %}
<table class="line-item-table">
<thead>
<tr class="line-item-table-header">
<th class="product-number">Prod. no.</th>
<th class="product-label">Product / Service</th>
<th class="numbers">Quantity</th>
{% if config.displayPrices %}
<th class="numbers">VAT</th>
<th class="numbers incl-vat">Unit price</th>
<th class="numbers incl-vat">Total</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 %}Commonly used variables
Variable
Description
The styles of the line items table
Loading default templates
Zuletzt aktualisiert