Print Total excl. Taxes for specific user role in invoice
-
Hello,
i need to print the order total amount excl. taxes for a specific user role. The shop is seperated in a public shop and B2B shop. Only for the B2B customer i need that total excl. taxes.
the user role is: b2b_kunde
The Code i am using in the invoice.php is:
<?php foreach ($taxes as $taxRate => $tax) : ?>
<tr>
<td class=”no-borders”></td>
<th class=”description”>Nettobetrag <?php echo $taxRate; ?>%</th>
<td class=”price”><span class=”totals-price”><?php echo number_format($tax, 2, “,”, “.”); ?> € (exkl. MwSt.)</span></td>
</tr>
<?php endforeach; ?>But that will print it for all customers. Is there a way to check for user role first?
Thank you! Alex
The page I need help with: [log in to see the link]
- The topic ‘Print Total excl. Taxes for specific user role in invoice’ is closed to new replies.