Forums
Home / Plugin: PDF Invoices & Packing Slips for WooCommerce / How to get total tax
(@burakkya)
7 years, 2 months ago
how i can get taxes and total tax
(@pomegranate)
Hello! You can get the taxes from WooCommerce in the template with:
$taxes = $this->order->get_taxes();
For the total tax amount you can use:
$total_tax - $this->order->get_total_tax();
For a solution that doesn’t require coding, I can highly recommend using the Premium Templates extension, which lets you do this using the customizer.
Hope that helps! Ewout