You are here

uc-payment-totals.html.twig in Ubercart 8.4

{#
/**
 * @file
 * Default theme implementation to display a summary of line items.
 *
 * Available variables:
 * - order: The order that is being displayed.
 * - line_items: An associative array of line items containing:
 *   - type: Line item type.
 *   - title: Line item title.
 *   - amount: Line item price.
 *
 * @see template_preprocess_uc_payment_totals()
 *
 * @ingroup themeable
#}
<table class="uc-payment-totals">
  {% for line in line_items %}
    <tr class="line-item-{{ line.type }}">
      <td class="title">{{ line.title }}:</td>
      <td class="price">{{ line.amount }}</td>
    </tr>
  {% endfor %}
</table>

File

payment/uc_payment/templates/uc-payment-totals.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Default theme implementation to display a summary of line items.
  5. *
  6. * Available variables:
  7. * - order: The order that is being displayed.
  8. * - line_items: An associative array of line items containing:
  9. * - type: Line item type.
  10. * - title: Line item title.
  11. * - amount: Line item price.
  12. *
  13. * @see template_preprocess_uc_payment_totals()
  14. *
  15. * @ingroup themeable
  16. #}
  17. <table class="uc-payment-totals">
  18. {% for line in line_items %}
  19. <tr class="line-item-{{ line.type }}">
  20. <td class="title">{{ line.title }}:</td>
  21. <td class="price">{{ line.amount }}</td>
  22. </tr>
  23. {% endfor %}
  24. </table>