Total without tax in credit note
-
Dear,
I am using the ‘simple premium’ template for my credit note. The total value of the credit note contains both a number and a string with tax information: -€34,18 (inclusief -€5,93 btw (21%))
How can I remove the tax part “(inclusief -€5,93 btw (21%))” so that I am only left with the numeric value “-€34,18”?
The following code is responsible for obtaining the totals:
<tfoot> <?php foreach( $this->get_woocommerce_totals() as $key => $total ) : ?> <tr class="<?php echo $key; ?>"> <th class="description"><?php echo $total['label']; ?></th> <td class="price"><?php echo $total['value']; ?></td> </tr> <?php endforeach; ?> </tfoot>
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Total without tax in credit note’ is closed to new replies.