commerce-payment-total-summary.html.twig in Commerce Core 8.2
Default payments summary template.
Available variables:
- order_entity: The order entity object.
1 theme call to commerce-payment-total-summary.html.twig
- PaymentListBuilder::render in modules/
payment/ src/ PaymentListBuilder.php - Make the payment list page themeable. Add total_paid and order_balance elements.
File
modules/payment/templates/commerce-payment-total-summary.html.twigView source
- {#
- /**
- * @file
- * Default payments summary template.
- *
- * Available variables:
- * - order_entity: The order entity object.
- *
- * @ingroup themeable
- */
- #}
- {{ attach_library('commerce_payment/payment_summary') }}
- <div>
- <div class="payment-summary-line payment-summary-line-total-paid">
- <span class="payment-summary-line-label">{{ 'Total paid'|t }} </span><span class="payment-summary-line-value">{{ order_entity.getTotalPaid|commerce_price_format }}</span>
- </div>
- <div class="payment-summary-line payment-summary-line-balance">
- <span class="payment-summary-line-label">{{ 'Order balance'|t }} </span><span class="payment-summary-line-value">{{ order_entity.getBalance|commerce_price_format }}</span>
- </div>
- </div>