Invoice - Different text for different customer groups.
order_invoice.twig
Code: Select all
{% for order in orders %}
<div style="page-break-after: always;">
{% if customer_group_id == '1' %}
<h6 align="center" style="text-align:center;">{{ text_invoice }}</h6>
{% endif %}
{% if customer_group_id == '2' %}
<h6 align="center" style="text-align:center;">{{ text_invoice_1 }}</h6>
{% endif %}
Code: Select all
$_['text_invoice'] = 'Invoice';
$_['text_invoice_1'] = 'Pre-Invoice';