You are here

commerce-invoice-confirmation.html.twig in Commerce Invoice 8.2

Template for the invoice email confirmation.

Available variables:

  • invoice_entity: The invoice entity.
  • billing_information: The billing information.
  • totals: An array of invoice totals values with the following keys:
    • subtotal: The invoice subtotal price.
    • adjustments: An array of adjustment totals:
      • type: The adjustment type.
      • label: The adjustment label.
      • total: The adjustment total price.
      • weight: The adjustment weight, taken from the adjustment type.
    • total: The invoice total price.

File

templates/commerce-invoice-confirmation.html.twig
View source
  1. {#
  2. /**
  3. * @file
  4. * Template for the invoice email confirmation.
  5. *
  6. * Available variables:
  7. * - invoice_entity: The invoice entity.
  8. * - billing_information: The billing information.
  9. * - totals: An array of invoice totals values with the following keys:
  10. * - subtotal: The invoice subtotal price.
  11. * - adjustments: An array of adjustment totals:
  12. * - type: The adjustment type.
  13. * - label: The adjustment label.
  14. * - total: The adjustment total price.
  15. * - weight: The adjustment weight, taken from the adjustment type.
  16. * - total: The invoice total price.
  17. *
  18. * @ingroup themeable
  19. */
  20. #}
  21. <table style="margin: 15px auto 0 auto; max-width: 768px; font-family: arial,sans-serif">
  22. <tbody>
  23. <tr>
  24. <td>
  25. <table style="margin-left: auto; margin-right: auto; max-width: 768px; text-align: center;">
  26. <tbody>
  27. <tr>
  28. <td>
  29. <a href="{{ url('<front>') }}" style="color: #0e69be; text-decoration: none; font-weight: bold; margin-top: 15px;">{{ invoice_entity.getStore.label }}</a>
  30. </td>
  31. </tr>
  32. </tbody>
  33. </table>
  34. <table style="text-align: center; min-width: 450px; margin: 5px auto 0 auto; border: 1px solid #cccccc; border-radius: 5px; padding: 40px 30px 30px 30px;">
  35. <tbody>
  36. <tr>
  37. <td style="font-size: 30px; padding-bottom: 30px">{{ 'Invoice'|t }}</td>
  38. </tr>
  39. <tr>
  40. <td style="font-weight: bold; padding-top:15px; padding-bottom: 15px; text-align: left; border-top: 1px solid #cccccc;">
  41. {{ 'Invoice #@number:'|t({'@number': invoice_entity.getInvoiceNumber}) }}
  42. </td>
  43. </tr>
  44. <tr>
  45. <td>
  46. {{ "A new invoice has been created for you. It has been attached to this email."|trans }}
  47. </td>
  48. </tr>
  49. </tbody>
  50. </table>
  51. </td>
  52. </tr>
  53. </tbody>
  54. </table>