Hi @testsite01,
Are you already applying the VAT reverse charge to your orders? If so, you could check if the order tax amount is equal to 0, and display the message if the condition is true. Something like this:
/**
* PDF Invoices & Packing Slips for WooCommerce:
* Add a custom message after customer notes if tax is zero
*/
add_action( 'wpo_wcpdf_after_customer_notes', function( $template_name, $order ){
if( $order->get_total_tax() == 0 ) {
echo 'Your custom message goes here';
}
}, 10, 2);If you haven’t worked with code snippets (actions/filters) or functions.php before, read this guide: How to use filters
However, my recommendation is using the customizer, included in the Premium Templates extension, to be able to use a custom block with this set up:
Then, your PDF invoice will display the custom text if the VAT reverse charge condition is met, like this:
The VAT Reverse Charge option will be considered ‘true’ if all these conditions are met:
- The order is from a European Union country.
- Order total is greater than zero (0)
- The VAT of the order is equal to zero (0)
- The order has a VAT number (you should have a compatible plugin installed that collects the VAT number on the checkout page, e.g. EU/UK VAT Compliance Assistant for WooCommerce)
Please note that, since the rules for the WordPress.org forums doesn’t allow us providing premium support or answering pre-sale questions for paid plugins, please contact us by email to [email protected], if you have further questions.