Hi @saniat,
This can be done without any code using a custom block within the customizer, included in the Premium Templates extension, or adding some PHP code, using our PDF template action hooks.
If you choose the first option, you just need to add a custom block with these settings:

In the case that you prefer to try with code, add this code snippet to your site:
/**
* Show the VAT number on the invoice
*/
add_action( 'wpo_wcpdf_after_billing_address', function($template_type, $order){
if( $template_type == 'invoice') {
if ( $vat_number = $order->get_meta( 'vat_number' ) ){
echo '<div>VAT: ' . $vat_number . '</div>';
}
}
}, 10, 2 );
If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters.
Let me know if you manage to display the VAT number in your invoices!
Thread Starter
saniat
(@saniat)
All right! Let me check it.
Thread Starter
saniat
(@saniat)
I want to know if I have a 22% VAT on subtotal of an order and it is also country based. How can I show it on the pdf invoice?
Hi @saniat,
Sorry! I misread your question: I thought you wanted to show the VAT number, but you want to show the VAT of the order instead, is that right?
If so, make sure that your order have the taxes configured correctly. Please read this article from the plugin’s documentation to learn more: Displaying taxes > Taxes missing
When you have your taxes correctly in your order, you should see the tax row in your totals’ area, like this:

-
This reply was modified 4 years, 3 months ago by
Yordan Soares. Reason: Add a screenshot that display the tax row in the total's area
Thread Starter
saniat
(@saniat)
Ok. No Worries! Thank you! Let me check this.
Hi @saniat,
I forgot to tell you that you also need to have set the checkout to show prices excluding tax, if you want to display the VAT itemized. This should be done under WooCommerce > Settings > Tax > Display prices during cart and checkout, choose Excluding tax here.