• Resolved Marc80

    (@marc80)


    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

Viewing 1 replies (of 1 total)
  • Plugin Contributor Ewout

    (@pomegranate)

    Hello Marc,
    Unfortunately “Total without tax” and “Total tax” are not part of these standard WooCommerce totals. The code you are using right now is just a way to split the totals that are already printed in the PDF by default.
    More detailed tax totals are included in the premium templates.

    Kind regards,
    Ewout Fernhout

Viewing 1 replies (of 1 total)
  • The topic ‘Total details in pdf invoice’ is closed to new replies.