Discussion on WooCommerce Eu Vat & B2B

Discussion on WooCommerce Eu Vat & B2B

Cart 535 sales
Recently Updated

vanquish supports this item


268 comments found.

Hallo, in the customer demo, Italy seems to be the local country. Why Switzerland has VAT as business and not the other countries. Bug ? Thank you !

what do you mean that no other countries have the vat as business?

From my test any EU country has the VAT field when selecting the business option:

Hi there,

Presale question. I’ve browsed the demo website and I can’t see option to make Business field by default through the Type dropdown field. May I’m wrong ?

Thank you.

the plugin has an option to display a business/customer selector, but it hasn’t any option to make the “business” option as default.

Thank you for the fast reply. Do you think there’s a way to make it default with a snippet or JS ? I’m asking because 90% of my customers are companies.

Yes, via JavaScript, you can eventually select the business option once the page is loaded.

Once purcased I can suggest the code to use.

Dear mr/mrs,

I purchased WooCommerce Eu Vat & B2B.

When a customer is not logged in, the vat is not exempted. Only when a customer is logged in is the vat exempted. How can this be solved?

Looking forward to hear from you soon.

Thanks in advance.

Kind regards,


Hello Lars,
I’m sorry but from my tests, all seems working as expected:
  1. On the checkout:
  2. Placing the order:
Please ensure you are running the latest 11.9 plugin version and that there are no 3rd party plugins interfering (like for example caching plugin). Make also sure you have not altered the checkout form and process in any way.

In order to not be missing anything, try recreating your scenario on this site: (user: demo, pass: demo) and report to me if you are experiencing the issue. If so, please report to me a step-by-step guide on how to. Thank you.

Ciao! ho appena acquistato il plugin.. a me serve solo per far vedere il select Privato/Azienda con codice fiscale e piva.. peró non va, cioé nella pagina di checkout vedo il select, ma quando seleziono non compaiono i campi. Il sito é NB non ho fatto nessuna modifica alla pagina di checkout.. ed é un woocommerce ultima versione.

ps.. andando a guardare nella console di google chrome trovo questo errore:

Uncaught ReferenceError: wc_cart_fragments_params is not defined at frontend-checkout-page.js?ver=6.1.1:55:7

e vedo che il file é questo

Si è possibile, ma onestamente non saprei dirti quale. Nessun altro utente ha mai riportato questo tipo di malfunzionamento di WooCommerce, quindi non saprei darti altri suggerimenti. Potresti eventualmente provare a contattare il support di WooCommerce descrivendo il bug. Forse loro sanno fornirti maggiori dettagli.

Nel frattempo puoi provare a modificare il file frontend-checkout-page.js che trovi nella cartella js dentro il plugin e rimuovere da line 3 a 79. In questo modo il plugin non utilizzerà quel componente di WooCommerce. Nota cosi facendo non funzionerà più la funzionalità che permette di associare indirizzi ai prodotti nel carrello.

ho finalmente capito cos’era! Il plugin non funziona se in Aspetto -> Personalizza -> woocommerce -> pagamento il “Campo Nome della società” è su Nascosto , mentre deve essere su “opzionale”... Per favore scrivilo sulla guida o da qualche parte perchè ci ho perso la salute a capire cosa fosse! Altra piccola nota: nei testi personalizzabili manca la possibilità di personalizzare il testo “codice fiscale” has an invalid format. Io l’ho fatto con il traduci stringa di WPML , però sarebbe bello trovarlo come gli altri testi personalizzabili… Ciao!

ok, si ha senso. Grazie per aver condiviso il risultato della tua ricerca!

In effetti nella pagina del plugin, nel paragrafo Custom checkout form notice viene messo in guardia sul fatto che personalizzando il form di checkout potrebbe causare malfunzionamenti. Includerò anche questo caso

Grazie anche per il consiglio sul testo, cercherò il di migliorare questo aspetto.

Infine ti chiederei un favore: potresti lasciare le stelle al plugin? Mi aiuterebbe con le vendite! ( )

ciao e buona giornata!

Hello, Can you please help with a quick test if your plugin works with our local WooCommerce extension plugin called: Hucommerce? You can download it for free – would you be so kind please to test? Thank you!

Tested on your demo site, but as it is not a local EU, DE-vat number does nothing. My site is located in Hungary and I’ve tested with a valid EU-VAT from Germany. I do not reiceive an error message that the VAT is incorrect, nor the VAT is removed from the totals. I am using the original WooCommerce checkout module with DIVI builder. If it is the builder, problem is big as it won’t work? :(

It is hard to determine the cause of the issue. Please try temporarily disabling the DIVI builder, and use the default checkout page. If the issue doesn’t occur, it means that the altered checkout page is the cause. In the plugin description page, in the Custom checkout form notice paragraph is clearly reported that this kind of action might lead the plugin to not work.

If the issue still happens with the default page, it means that your server is blocking SOAP requests. The validation library uses that kind of request in order to validate the VAT. In that case, you need to make sure your server is properly configured not to block that communication protocol.

Thanks – sent you a message, please check!


1) I purchased your plugin, but as soon as I enter a VAT number, it loads and loads and never ends. So it freezes the checkout process, and delivers no validation. I precise I have set up VIES validation.

2) Also, do we have an option to hide “VAT Number” field for Local Businesses, as it is not mandatory to ask it. It is just slowing the payment process with something unnecessary.

Thanks for your reply! Regards, Laurent

Hi Laurent,
  1. Please make sure that there isn’t any plugin interfering, try disabling all of them. Make also sure you have not altered the checkout form and process in any way. Note also that the VIES Validation library use the Soap protocol to sends data. Make eventually sure that your web server is not blocking/interfering with it
  2. I’m sorry, the plugin hasn’t any option for that

PreSale question


I’m interested with your plugin.

I have several cases possible from my shop:

- 20% VAT tax to all individual consumers

- 20% VAT tax to FR companies - 0% VAT tax for EU companies with valid VAT number - 0% tax for all other companies

Will I be able to set up these exact conditions with your plugin? I hope so :-)

Thanks in advance for your reply! Regards Laurent

yes, the plugin allows you to remove the Vat only for EU companies with a valid vat, just enable the following option:

Note, however, it hasn’t any option to remove taxes for “other companies”. The plugin recognizes a company only based on the entered vat number, the vat number can be entered only by companies that use a European billing country.


We’ve activated the plugin and followed the steps we saw on your Live Demo. In the panel “EU Vat field – option” we enabled the same fields as you. But after those steps the new VAT fields are not visible on our cart page. It seems the link between this additional plugin and the WordPress plugin is not working. What can we do to resolve this matter and to be able to see the missing fields ? Divi Builder is used on this page as well. (Here some screenshot )

Thanks for your help !

I’m really sorry, but without any further clue, it is quite hard to determine the cause.

If in the demo site, with the same configuration it works, and on your site, it is not, it means that in your site something is interfering.

As reported in the description page, in the Custom checkout form notice, the plugin is designed to work with the standard checkout page form. If you have altered it in any way (or you are using a custom one built with any visual editor), this could be the cause. Please try restoring the original page and see if the issue still persists.

Note also that you need to select a country belonging to Europe as the billing country before the field is displayed.


The plugin doesn’t work for me on my website if I set the Enable validation section to Yes. The plugin doesn’t work for both validation options: Vies or format. The website stops being able to advance when entering the VAT number or gives a critical error. See and

The plugin does work for me if I set the Enable validation section to No. Until now, the plugin did work for me with Enable validation set to Yes and Validation Type: Vies validation. This is important to me because that way I don’t lose money if customers find out that putting a number in VAT deducts VAT. Because if clients enter a wrong intra-community VAT number, I cannot declare that it was an intra-community operation and I lose VAT twice.

Could you check why it doesn’t work for me?


Thank you for sharing. The issue is related to a server issue, it seems that the server you are using has not installed the SoapClient PHP library ( ).

That library is a standard library that is usually installed on any server. If that is not present, the plugin cannot comunicate with the service and perform the VIES validation.

Try contacting your hosting in order to have that library installed and the issue will be addressed.

The hosting installed SoapClient and it was fixed. Now the module works fine. Thank you. Magnificent support.

Glad to hear that! :)

At last but not least, I would ask you to help me: If you enjoyed my efforts to assist you please consider leaving the 5 stars…It would help me with sales, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate your purchases. You can also leave the rating through the plugin description page: )

Have a great day!

After installing the plugin, we started getting an error in Woocommerce. Could this plugin be the current reason for woocommerce and wordpress?


2023-01-07T00:00:23+00:00 CRITICAL Uncaught Error: Call to a member function get_allowed_countries() on null in /var/www/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353 Stack trace: #0 /var/www/htdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(129): wc_get_customer_default_location() #1 /var/www/htdocs/wp-content/plugins/woocommerce/includes/data-stores/class-wc-customer-data-store-session.php(118): WC_Customer_Data_Store_Session->set_defaults(Object(WC_Customer)) #2 /var/www/htdocs/wp-content/plugins/woocommerce/includes/class-wc-data-store.php(159): WC_Customer_Data_Store_Session->read(Object(WC_Customer)) #3 /var/www/htdocs/wp-content/plugins/woocommerce/includes/class-wc-customer.php(125): WC_Data_Store->read(Object(WC_Customer)) #4 /var/www/htdocs/wp-content/plugins/woocommerce/includes/class-woocommerce.php(840): WC_Customer->__construct(0, true) #5 /var/www/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php(2550): WooCommerce->initialize_cart() in /var/www/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php on line 1353

2023-01-07T00:00:23+00:00 CRITICAL Uncaught Error: Call to a member function get_allowed_countries() on null in /var/www/htdocs/wp-content/plugins/woocommerce/includes/wc-core-functions.php:1353

it seems related to a WooCommerce issue:

Please note in fact that in the error stack, you reported there is no trace of any script of the WooCommerce Eu Vat & B2B plugin.

Hi, how can I make sure that also the country code (CC) is added ? Because now it works with or without a country code, for example: BE0445176748 and 0445176748 works. For our CRM this doesn’t work, should always have the CC in front of it. Hopes thats possible, I think it would be helpfull for everyone that has orders exported to somewhere.

yes because in case it is present, the plugin removes it and perform the validation according the billing address.

I’m really sorry, but the plugin is not designed to manage the vat number with the CC as prefix, and there isn’t a simple modification I can suggest in few lines to have it working in that way.

Dear support, I’d like to know if there’s any chance to add another entity as “Libero Professionista”, to add to “Company” and “Private”, with about the same features of “Company”.

Hope you can help.

for now there isn’t any plan for that. Thank you for your suggestion, I’ll try doing my best for a future release

We have an issue with the plugin in the scenario below

Our warehouse is in Cyprus, we have VAT number from Cyprus government. If a company from another EU member place an order with Billing information and valid VAT the plugin remove the VAT amount but if the shipping address is Cyprus address we have to charge the VAT. I don’t see any option to fix this issue. Any way to resolve that issue?

Thanks Christos

Thank you for renewing.

Try modifying the WCEV_CheckoutPage.php located in the classes\frontend folder and replace line 58 with:

if(isset($params[‘shipping_country’])) $user_location = $params[‘shipping_country’]; else $user_location = isset($params[‘billing_country’]) ? $params[‘billing_country’] : ‘none’;

ok try editing the WCEV_Customer.php in classes\com, remove line 59 and replace 62 with:
$billing_country = $wc_user->get_shipping_country();
it should look like:

I’m no programmer, but I’m usually pretty good at hacking a couple bits of code together. I’ve been spinning my wheels here for quite a while.

I use PDF Invoices & Packing Slips for WooCommerce.

I successfully created my own working invoice template.

I have added the following code to it:

global $wcev_order_model; 
$vat_number = $wcev_order_model->get_vat_number($order_id);

<div class="vat-number">VAT Number: <?php echo $vat_number; ?></div>

My test account definitely has a VAT number associated with it. But all that shows up on the invoice is…

VAT Number:

Please see this screenshot:

I appreciate your help!

But unfortunately the first attempt produced this error:

Fatal error: Call to undefined method WPO\WC\PDF_Invoices\Documents\Invoice::get_id()

And the second just gave a blank result as before.

I realize this is probably beyond the scope of what you can comfortably support. Your plugin looks really capable. Unfortunately, my only reason for purchasing it was to display my EU customer’s VAT number on their invoices. It’s the only function I need.

If you have any other ideas you could share, I’d be stoked to try them. Cheers.


It turns out that the VAT field that was displaying in my form was from another WP plugin.

It seems that the expected field from Eu Vat & B2B didn’t display until I disabled and re-enabled your plugin.

And for some reason, it still won’t display at all unless I select “Always show the field”.

I’ll try to sort that out.

But in the meantime, I wanted to let you know that the VAT field is displaying on my invoices and I am a happy customer. Thank you for your quick response on this issue that, it turns out, was user error.


No problem at all!

Have a great day!

[rewrote for clarity]

After a successful order the ‘VAT Number: .....’ expression appears in both of the emails for the buyer and for the shop owner too. Where do I have to translate it to my language, because I’ve tried to translate it through Loco Translate but couldn’t find it. Thank you!

Glad to hear that! Thank you for sharing your method, it could be useful to others!

At last but not least, I would ask you to help me: If you enjoy my plugin please consider leaving the 5 stars…It would help me with sales, I would really appreciate it! :)
(to leave a rating: go to your profile page, click on “Downloads” and from there you can rate your purchases. You can also leave the rating through the plugin description page: )

Have a great day!

Done! Your plugin is worth 5 stars!

Thanks I really appreciate it!

Hello, i have issue with this plugin. It does not validate VAT no correctly. I have couple of customers who have added number, but their numbers are not valid. Looks like the plugin does not validate numbers correctly?

from my tests vat is validated correctly both by selecting the “Format” and the “Vies” methods.

Please try using the following site: (user: demo, pass: demo) to recreate your scenario and report to me a step by step guide on how to eventually experience the issue. I’ll perform some further tests. Thank you for your collaboration.

Okay, thanks. It is working on Your test site indeed. But there are issue on my site. I will look it further to find is there any plugin conflicts.

Hello, Is it possible to do the following? 1. Client enters VAT number -> Vies checks it 2. If Vies is valid -> then tax remove 3. If vies is not valid -> client still has the possibility to order but ofc tax won’t remove. Atm point 3 is problematic, if the client has an issue with vies validation he can’t purchase anything. To mention that in Romania for ex, not all companies are in vies, we have non vat companies here. Waiting for your answer. Thanks

Hi, I’m sorry, the plugin doesn’t work in that way. If the vies validation fails, there checkout cannot be performed. The vat number should eventually be removed.

Hello! We are based in Germany. For EU everything works fine. Question: For Business / Third Country (not EU) should be 0% tax as well. Right now, it does it only for European contries, but not others as USA, India, etc. How can we do this?

I’m sorry, the plugin is designed only to manage EU Businesses. It will remove taxes only if an EU Vat number is entered during the checkout. The plugin won’t consider anything outside Europe.



Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey