If Germany is your shop’s base country, the EU VAT Assistant won’t tell WooCommerce to apply a VAT exemption, even when the customer enters a valid EU VAT number.
If Germany is not your shop’s base country, and you simply want to prevent a VAT exemption in all cases, you can Write a filter for hook wc_aelia_eu_vat_assistant_customer_vat_exemption
. In the filter, check if the country is Germany and, in that case, disable the exemption.
Example
add_filter('wc_aelia_eu_vat_assistant_customer_vat_exemption', function($customer_vat_exemption, $vat_country, $vat_number) {
if($customer_vat_exemption && ($vat_country === 'DE')) {
// Always return false for Germany, to disable the VAT exemption
$customer_vat_exemption = false;
}
return false;
}, 10, 3);
Important
The solution described above is a customisation, and it’s provided without guarantees. All customisations are outside the scope of our support service. Should you need assistance implementing it, please feel free to contact us to schedule a consultation.
-
This reply was modified 2 years, 6 months ago by Diego. Reason: Added tags