Total details in pdf invoice
-
Hi all,
in my custom pdf template I replaced default totals<?php foreach( $wpo_wcpdf->get_woocommerce_totals() as $key => $total ) : ?>
<tr class=”<?php echo $key; ?>”>
<td class=”no-borders”> </td>
<th class=”description”><?php echo $total[‘label’]; ?></th>
<td class=”price”><span class=”totals-price”><?php echo $total[‘value’]; ?></span></td>
</tr>
<?php endforeach; ?>with
<tr>
<td class=”no-borders”> </td>
<th class=”description”>Total</th>
<td class=”price”><span class=”totals-price”><?php $woocommerce_totals = $wpo_wcpdf->get_woocommerce_totals(); echo $woocommerce_totals[‘order_total’][‘value’]; ?></span></td>
</tr>in this way I can have only Total order showed. OK
I need other two rows wit “Total Without Tax” and “Total Tax”
Can someone help me please?
Thanks in advance
- The topic ‘Total details in pdf invoice’ is closed to new replies.