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 !
Hello,
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: https://nimb.ws/ibsWuS
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.
Hi,
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,
Lars
I’m sorry but from my tests, all seems working as expected:
- On the checkout: https://nimb.ws/PFRBG9
- Placing the order: https://nimb.ws/1IPYis
In order to not be missing anything, try recreating your scenario on this site: https://codecanyondemo.work/wcev/wp-admin/ (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 é https://www.muschierivenezia.it/checkout/ 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 https://www.muschierivenezia.it/wp-content/plugins/woocommerce-eu-vat-field/js/frontend-checkout-page.js?ver=6.1.1
PPS se ti é utile saperlo “ajax add to cart” é abilitato in woocommerce e funziona in tutto il sito
Ciao,
il wc_cart_fragments_params è una variabile definita da WooCommerce, no dal plugin. Il plugin la utilizza per implementare alcune sue funzionalità.
Se non è definita, vuol dire che c’è qualcosa che non va con la tua installazione WooCommerce.
Assicurati eventualmente di non aver alterato in nessun modo la pagina checkout e il suo workflow. Eventualmente prova anche a disabilitare gli altri plugin terze parti, uno di essi potrebbe generare un interferenza.
buonasera, ho fatto molti test: disabilitando ogni plugin, cambiando template, reinstallando woocommerce, installando wordpress daccapo… e ho capito che il problema deriva unicamente da qualche settaggio di woocommerce, ma non riesco a a capire quale. Sul sito in produzione resettare woocommerce non è un’opzione, perciò ho duplicato tutto in un’area di test dove si può fare qualsiasi prova. Se le invio gli accessi sarebbe così gentile da aiutarmi a capire quale possa essere l’impostazione di woocommerce incriminata?
TEST1 Replica del sito in produzione con tutti i plugin e le personalizzazioni disattivate, l’unico elemento rimasto così com’è è woocommerce. Il plugin non funziona…
https://test.muschierivenezia.it/negozio/ricariche/carezza-di-talco-ricarica-500ml/ https://test.muschierivenezia.it/pagamento/ https://test.muschierivenezia.it/carrello/TEST2 Installazione vergine wordpress, woocommerce, tema e plugin. Il plugin funziona
https://test2.muschierivenezia.it/prodotto/prova/ https://test2.muschierivenezia.it/carrello/ https://test2.muschierivenezia.it/pagamento/PS Su test.muschierivenezia.it Il plugin funziona (anche con gli altri plugin attivi) solo se woocommerce e anche il suo database vengono resettati (cosa che non posso fare sul sito in produzione) quindi per me è chiaro che si tratti di un settaggio di woocommerce
Grazie per aver condiviso il risultato dei tuoi test. Sembra strano che la variabile JavaScript wc_cart_fragments_params non sia definito solo quando si aggiorna/resetta il database. Inoltre, in tutte le altre installazioni, questo non avviene (per esempio puoi effettuare un test su https://codecanyondemo.work/wcev/ ).
Quel componente, inoltre, fa parte di WooCommerce, non del plugin. Quindi non c’è molto che io possa fare per evitare quel malfunzionamento di WooCommerce. Prova eventualmente a capire se c’è qualche livello di cache che interferisce in qualche modo.
Proverò anche io ad effettuare qualche test per cercare di capirne di più.
il motivo per cui sostengo che sia qualche settaggio di woocommerce è che ricapitolando: su Test2 abbiamo wordpress e woocommerce installati ex novo e il plugin va. Su Test1 invece abbiamo la replica del sito attuale con tutti i plugin disattivati (adesso li ho addirittura cancellati), con attivo solo woocommerce (di cui ho copiato i file da Test2 quindi è proprio identico). Se su Test1 cancello e reinstallo ex novo il DB di woocommerce il plugin funziona. Quindi deve essere qualche settaggio di woocommerce.
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! (https://www.dropbox.com/s/v6zaoe0p6cs4x2o/rating.png?dl=0 )
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!
Hello,
I’m sorry but the plugin seems to be in Hungarian, and unfortunately I do not speak any word of it.
If you send me via private message (click on my name and then use the low-right box) reporting your email, I can setup a private demo site where I’ll install both plugin so you can perform all the tests you need.
Thanks – in the meantime I’ve got a reply from someone who purchased both plugins and he said it is working well. I believe and I’ll give it a go! Thanks for your kindness!
Glad to hear that! You’re welcome!
+question: for some reason after the validation, VAT is not removed. What fileds need a match with the database? I mean postcode, company name etc.?
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!
Hi,
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
- 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
- I’m sorry, the plugin hasn’t any option for that
PreSale question
Hello,
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
Hello,
yes, the plugin allows you to remove the Vat only for EU companies with a valid vat, just enable the following option: https://nimb.ws/ViMYRw
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.
Hello,
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 https://we.tl/t-hDpBdZT9Al )
Thanks for your help !
Hello,
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.
Hello.
The plugin doesn’t work for me on my website www.vendolupulo.es 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 https://www.dropbox.com/s/paq36j0qkddp4h6/noworking.jpg?dl=0 and https://www.dropbox.com/s/rgc9aethz3wk9vo/unnamed.png?dl=0.
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?
Thanks.
Hello,
it sounds strange that the plugin stopped working without any reason. Please make sure you are running the latest 11.9 version.
define( 'WP_DEBUG', true ); define( 'WP_DEBUG_LOG', true );reperform the test and see if more clues are reported in the debug.log located in the wp-content folder.
Thank you.
Hello.
I enabled the WordPress debug mode and debug log, but it not generated any debug.log file located in the wp-content folder. The problem persists.
Thank you.
It sounds very strange that you do not find the debug.log. It means that something is wrong with your WordPress installation. Please make sure it is fully working and that there isn’t any plugin/customization that is moving the location of the debug.log. Without the info contained in it, it is quite hard to determine the cause of the issue and eventually suggests a solution.
Please make also sure you are running the latest 11.9 plugin version.
In order to understand if the issue is actually caused by a plugin malfunctioning, please use the following site: https://codecanyondemo.work/wcev/wp-admin/ (user: demo, pass: demo) to recreate your scenario and report to me if you are still experiencing the issue. If so, report to me a step-by-step guide. I’ll investigate further. Thank you.
Hello.
I have installed the Query Monitor plugin because the debug.log was not created (I have asked the server for help). I get the following error message when I enter the intra-community NIF in My Account and I have activated the validator by VIES: Fatal error: Uncaught Exception: The Soap library has to be installed and enabled in …/wp-content/plugins/woocommerce-eu-vat-field/classes/com/vendor/vatValidation.class.php on line 21
Call stack:
vatValidation::__construct()
wp-content/plugins/woocommerce-eu-vat-field/classes/com/WCEV_VatField.php:201
WCEV_VatField::validate_vat()
wp-content/plugins/woocommerce-eu-vat-field/classes/frontend/WCEV_BillingDetailsPage.php:22
WCEV_BillingDetailsPage::my_account_page_validate_fields_before_saving()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/plugin.php:205
apply_filters()
wp-content/plugins/woocommerce/includes/class-wc-form-handler.php:127
WC_Form_Handler::save_address()
wp-includes/class-wp-hook.php:308
WP_Hook::apply_filters()
wp-includes/class-wp-hook.php:332
WP_Hook::do_action()
wp-includes/plugin.php:517
do_action()
wp-includes/template-loader.php:13
require_once()
wp-blog-header.php:19
require()
index.php:17
Can this help you or do you need the debug.log?
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 (https://www.php.net/manual/en/class.soapclient.php ).
That library is a standard library that is usually installed on any server. If that is not present, the plugin cannot comunicate with the europa.eu 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: https://www.dropbox.com/s/v6zaoe0p6cs4x2o/rating.png?dl=0 )
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?
Error:
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
Hi,
it seems related to a WooCommerce issue: https://wordpress.org/support/topic/after-woocommerce-update-it-throws-error-while-first-time-loading-the-site/
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.
Hi,
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.
Hi,
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
Hi Christos, That’s not a plugin issue. The plugin is not designed to not remove the vat according the Shipping address. It just considers the billing address.
Hello,
I found my notes, I asked the same question, 2 years ago, and you told me to make a small change to two lines in the code in the “WCEV_Customer.php” file. Now, this code looks different after the updates. Can you please help me to make these changes again?
Thank you Christos
Hi Christos,
yes I can try to suggest a modification that might work. You need however to renew your support license.
Hello,
Thank you for the reply! I renew the support licence!
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’;
Hello, did not work. the code that you sent me before 2 years was work, > https://codecanyon.net/item/woocoomerce-eu-vat-field/19463373/comments?term=zchristos&from_buyers_and_authors_only=0&order_by=newest
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: https://www.dropbox.com/s/iib9m9xjibs8a0c/wcev_shipping_country.jpg?dl=0
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:
<?php 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: https://rede.ca/hitechbay/invoice-vat.png
Hi
It could be due to the fact the $order_id variable was not initialized with the actual order id.
Try the following:
<?php global $wcev_order_model; $vat_number = $wcev_order_model->get_vat_number($this->get_id()); ?> <div class="vat-number">VAT Number: <?php echo $vat_number; ?></div>or if it still doesn’t work, try:
<?php global $wcev_order_model; $vat_number = $wcev_order_model->get_vat_number($this->order->get_id()); ?> <div class="vat-number">VAT Number: <?php echo $vat_number; ?></div>
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.
MY BAD!
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!
the plugin ships with a .pot translation file named woocommerce-eu-vat-field.pot (located in the language folder inside the plugin) that allows you to translate that string (and the other static strings). You need to use a po editor (like https://poedit.net/ ), create a .po file for your language, translate the strings you need, and save. It will create a .mo file that you have to save back with the .mo file into the language folder.
The .po and .mo files must be named aswoocommerce-eu-vat-field.po and woocommerce-eu-vat-field.mo where it_IT is the language code for Italian, replace with the one for the language you need.
Thank you very much, but I’ve managed to translate it easily with Loco Translate too. The only thing I had to do is to ADD a NEW language, and NOT trying to change the existing language file below begining with acf-...po
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: https://www.dropbox.com/s/v6zaoe0p6cs4x2o/rating.png?dl=0 )
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?
Hi,
from my tests vat is validated correctly both by selecting the “Format” and the “Vies” methods.
Please try using the following site: https://codecanyondemo.work/wcev/wp-admin/ (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?
Hi,
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.
-