Support » Plugin: WooCommerce PDF Invoices & Packing Slips » Order total for different tax classes

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


    Hi Indira,
    You can get the tax classes in an array like this: $taxes = $wpo_wcpdf->get_order_taxes()

    you can then print these in a table by getting their respective labels & value:

    foreach( $taxes as $tax ) :
    		<th><?php echo $tax['label']; ?></td>
    		<td><?php echo $tax['value']; ?></td>

    You can get the grand total including tax with: $wpo_wcpdf->order_grand_total('incl')

Viewing 1 replies (of 1 total)
  • The topic ‘Order total for different tax classes’ is closed to new replies.