Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Diego

    (@daigo75)

    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
    Thread Starter kevinbeltrame16

    (@kevinbeltrame16)

    but the other country needs to continue working on the UK case

    Plugin Author Diego

    (@daigo75)

    The custom code I posted ensures that the VAT exemption is not applied to Germany. It doesn’t affect any other countries.

    Please note that the EU VAT Assistant doesn’t support the validation of UK VAT numbers, and can’t apply an exemption for them. If you need to be able to validate UK VAT numbers, the VAT Compliance plugin by Simba Hosting can handle that aspect. It’s also the solution we recommend to replace the EU VAT Assistant, which will be retired on the 30th of June 2022.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘don’t use vat for Germany country’ is closed to new replies.