{% if order.lineItems | length or order.totalPrice > 0 %}
{% for lineItem in order.lineItems %} {% set info = [ { label: "Description", value: lineItem.description }, { label: "Tax Category", value: lineItem.taxCategory.name }, { label: "Shipping Category", value: lineItem.shippingCategory.name }, { label: "Price", value: lineItem.price|currency(order.currency) }, { label: "Sale Amount", value: lineItem.saleAmount|currency(order.currency) }, { label: "Sale Price", value: lineItem.salePrice|currency(order.currency) }, { label: "Quantity", value: lineItem.qty }, { label: "Sub-total", value: lineItem.subtotal|currency(order.currency) }, { label: "Total (with adjustments)", value: lineItem.total|currency(order.currency) }, ] %} {% for adjustment in lineItem.adjustments %} {% endfor %} {% endfor %} {% for adjustment in order.orderAdjustments %} {% endfor %}
{{ 'Item'|t('commerce') }} {{ 'Note'|t('commerce') }} {{ 'Price'|t('commerce') }} {{ 'Quantity'|t('commerce') }}
{% if lineItem.purchasable %} {% if lineItem.purchasable.cpEditUrl %} {{ lineItem.description }} {% else %} {{ lineItem.description }} {% endif %} {% else %} {{ lineItem.description }} {% endif %}
{{ lineItem.sku }} {% if lineItem.options|length %} {{ "Options"|t('commerce') }} {% endif %}
{% if lineItem.note %} {{ lineItem.note|nl2br }} {% endif %} {{ lineItem.salePrice|currency(order.currency) }} {{ lineItem.qty }} {{ lineItem.subtotal|currency(order.currency) }}
{{ adjustment.type|title|t('commerce') }} {{ "Adjustment"|t('commerce') }}
{{ adjustment.name|title }} {{ adjustment.type|title|t('commerce') }} {{ "Adjustment"|t('commerce') }}
{{ adjustment.description }}
{{ adjustment.amount|currency(order.currency) }}
{{ "Items Total (with adjustments)"|t('commerce') }} {{ order.itemTotal|currency(order.currency) }}
{{ adjustment.type|title|t('commerce') }} {{ "Adjustment"|t('commerce') }}
{{ adjustment.name|title }} {{ adjustment.type|title|t('commerce') }} {{ "Adjustment"|t('commerce') }}
{{ adjustment.description }}
{{ adjustment.amount|currency(order.currency) }}
{% if order.isPaid and order.totalPrice > 0 %} {% endif %}

{{ "Total Price"|t('commerce') }}

{{ order.totalPrice|currency(order.currency) }}

{% endif %} {% hook "cp.commerce.order.edit.main-pane" %}