Dettaglio esenzione iva0% UE Ex UE

[ad_1]

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:

Please note that this custom block have checked the “VAT reverse charge” setting.

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:

  1. The order is from a European Union country.
  2. Order total is greater than zero (0)
  3. The VAT of the order is equal to zero (0)
  4. 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.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer