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.
1 theme call to commerce-invoice-confirmation.html.twig
- InvoiceConfirmationMail::send in src/
Mail/ InvoiceConfirmationMail.php - Sends the invoice confirmation email.
File
templates/commerce-invoice-confirmation.html.twigView source
- {#
- /**
- * @file
- * 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.
- *
- * @ingroup themeable
- */
- #}
- <table style="margin: 15px auto 0 auto; max-width: 768px; font-family: arial,sans-serif">
- <tbody>
- <tr>
- <td>
- <table style="margin-left: auto; margin-right: auto; max-width: 768px; text-align: center;">
- <tbody>
- <tr>
- <td>
- <a href="{{ url('<front>') }}" style="color: #0e69be; text-decoration: none; font-weight: bold; margin-top: 15px;">{{ invoice_entity.getStore.label }}</a>
- </td>
- </tr>
- </tbody>
- </table>
- <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;">
- <tbody>
- <tr>
- <td style="font-size: 30px; padding-bottom: 30px">{{ 'Invoice'|t }}</td>
- </tr>
- <tr>
- <td style="font-weight: bold; padding-top:15px; padding-bottom: 15px; text-align: left; border-top: 1px solid #cccccc;">
- {{ 'Invoice #@number:'|t({'@number': invoice_entity.getInvoiceNumber}) }}
- </td>
- </tr>
- <tr>
- <td>
- {{ "A new invoice has been created for you. It has been attached to this email."|trans }}
- </td>
- </tr>
- </tbody>
- </table>
- </td>
- </tr>
- </tbody>
- </table>