Op dit moment ziet mijn totaal bedrag er op mijn factuur in woocommerce er zo uit:
Bestelling totaal: €x (inclusief €y BTW)
Hoe kan ik het volgende er van maken:
Subtotaal van bestelling: €z
BTW: €y
Bestelling totaal: €x
Zo heb ik het nu:
Bestelling totaal: €x (inclusief €y BTW)
Hoe kan ik het volgende er van maken:
Subtotaal van bestelling: €z
BTW: €y
Bestelling totaal: €x
Zo heb ik het nu:
Alvast bedankt!<tfoot>
<?php
if ( $totals = $order->get_order_item_totals() ) {
$i = 0;
foreach ( $totals as $total ) {
$i++;
?><tr>
<th scope="row" colspan="2" style="text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['label']; ?></th>
<td style="text-align:left; border: 1px solid #eee; <?php if ( $i == 1 ) echo 'border-top-width: 4px;'; ?>"><?php echo $total['value']; ?></td>
</tr><?php
}
}
?>
</tfoot>