Hi,
While checking the /wp-content/debug.log file, I noticed the following errors (replaced real site path with?<website-path>):
[14-Nov-2024 17:37:48 UTC] PHP Warning: include(//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-cross-selling/src/php/class-wpfactory-cross-selling.php): Failed to open stream: No such file or directory in //wp-content/plugins/perfmatters/vendor/composer/ClassLoader.php on line 576
[14-Nov-2024 17:37:48 UTC] PHP Warning: include(): Failed opening ‘//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-cross-selling/src/php/class-wpfactory-cross-selling.php’ for inclusion (include_path=’.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php’) in //wp-content/plugins/perfmatters/vendor/composer/ClassLoader.php on line 576
[14-Nov-2024 17:37:48 UTC] PHP Warning: include(//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-admin-menu/src/php/class-wpfactory-admin-menu.php): Failed to open stream: No such file or directory in //wp-content/plugins/perfmatters/vendor/composer/ClassLoader.php on line 576
[14-Nov-2024 17:37:48 UTC] PHP Warning: include(): Failed opening ‘//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-admin-menu/src/php/class-wpfactory-admin-menu.php’ for inclusion (include_path=’.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php’) in //wp-content/plugins/perfmatters/vendor/composer/ClassLoader.php on line 576
These errors are showing consistently on every load. I tested with the back office dashboard page load and the website home page load. In both cases, the errors were listed in the log file.
At first glance, it looks like the errors are caused by the Perfmatters plugin. I deactivated the Perfmatters plugin, but the errors are still showing in the debug.log file, but this time initiated by the Rank Math plugin:
[14-Nov-2024 17:43:48 UTC] PHP Warning: include(//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-cross-selling/src/php/class-wpfactory-cross-selling.php): Failed to open stream: No such file or directory in //wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 576
[14-Nov-2024 17:43:48 UTC] PHP Warning: include(): Failed opening ‘//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-cross-selling/src/php/class-wpfactory-cross-selling.php’ for inclusion (include_path=’.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php’) in //wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 576
[14-Nov-2024 17:43:48 UTC] PHP Warning: include(//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-admin-menu/src/php/class-wpfactory-admin-menu.php): Failed to open stream: No such file or directory in //wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 576
[14-Nov-2024 17:43:48 UTC] PHP Warning: include(): Failed opening ‘//wp-content/plugins/eu-vat-for-woocommerce/vendor/composer/../wpfactory/wpfactory-admin-menu/src/php/class-wpfactory-admin-menu.php’ for inclusion (include_path=’.:/opt/alt/php80/usr/share/pear:/opt/alt/php80/usr/share/php:/usr/share/pear:/usr/share/php’) in //wp-content/plugins/seo-by-rank-math/vendor/composer/ClassLoader.php on line 576
Since the issue persists regardless of the plugin, I guess, it may be caused by your plugin as the?eu-vat-for-woocommerce string is present all the time in all errors.
Please help me with this. Thank you in advance.
Looking forward to your reply.
My best regards,
]]>I’m trying to translate the Validating VAT, valid VAT, invalid VAT messages. WPML seems to pickup the right string from the /wp-content/plugins/eu-vat-for-woocommerce/includes/settings/class-alg-wc-eu-vat-settings-validation.php file. However, translating them has no effect…
__( 'Validating VAT. Please wait...', 'eu-vat-for-woocommerce' ), ?
Am I missing something? Many thanks for providing this useful plugin free of charge!
]]>After an update I have error messages all over the site.
How to rollback to 3.0.1?
]]>I have been using the plugin for about 2 months now: out of 130 orders received, about 10 have had problems with VAT not being exempted even though the VAT number entered is correct (and is also registered correctly in the user profile page).
On testing, I see that it often takes a very long time to check the validity of the VAT number and I think that some of these users have proceeded with the purchase without waiting for the result of the validation.
I have tried changing the option of ‘Validate action trigger“ from Input to Blur, so as to reduce the validation requests while typing, changing ”First validation method”, and enabling “Force VAT recheck on checkout” but have not seen any improvement.
“Reduce concurrent request to VIES” option, how does it work? If I enable it and there are too many errors for MS_MAX_CONCURRENT_REQ is VAT exempt or not?
Have any of you had a similar experience and understood what it is caused by, or is there any setting to solve this type of problem?
WordPress: 6.6.2
WooCommerce: 9.3.2
EU/UK VAT for WooCommerce: 2.12.12
Thank you!
]]>Hello, we have enabled your plugin with the default options and no field is showing in the guest/registered checkout.
Is something we are missing?
EU/UK VAT for WooCommerce v2.12.14
WooCommerce v9.3.3
Thank you.
]]>Hello, is there a way to add an extra note when using PDF Invoice & Packing Slips?
Here in Spain we need to add a note on all invoices inside EU when VAT is not charged.
Thank you.
]]>When you make a manual order, and want to exemt vat. it is not working.
I noticed that the meta “is_vat_exempt” yes is not created. When I add it manually it works.
Can you fix this. Thanks.
Cheers, Philip
]]>We have a specific product where we have to keep the VAT (courses in the shop’s country, tax law) even if a valid VAT number is entered(or hide the field), how can we do that?
(we have the pro version)
document.getElementById('confirmo-modal').innerHTML = '<center><div class="confirmo-modal"><p align="right"><button class="confirmo-close" onclick="closeconfirmomodal()">×</button></p><div id="confirmo-content"></div><div class="confirmo-controls"><button id="confirmo-left" class="confirmo-btn">✔ Yes</button><button id="confirmo-right" class="confirmo-btn" onclick="closeconfirmomodal()">× No</button></div></div></center>';
This part of the code, I cannot change yes / no to my own language, since there are no translation strings.
]]>Hi there, first of all thanks for the great contribution with this plugin!
I got a message in Woocommerce indicating the plugin is not compatible with the high speed order storage. Is this correct? I run this in compatibility mode myself and even them it seems VAT is not deducted anymore even when the VAT number is correct. Is there a solution for this?
Thanks for your reply.
]]>I received this notice that there’s a security concern with the plugin: https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/eu-vat-for-woocommerce/euuk-vat-manager-for-woocommerce-21210-reflected-cross-site-scripting
Don’t know if the owners of the plugin also receive it, so thought it would be good to have a post on it listed here.
]]>echo '<p>' . '<a href="' . add_query_arg( 'validate_vat_and_maybe_remove_taxes', $_order->get_id() ) . '">' .
__( 'Validate VAT and remove taxes', 'eu-vat-for-woocommerce' ) . '</a>' . '</p>';
Please update eu-vat-for-woocommerce/includes/admin/class-alg-wc-eu-vat-admin.php
line 460.
Variable $order_id
does not exist!
Hi there!
I installed this plugin on my customers site and I really love it.
The only thing that I miss is the option to change the price suffix when someone has a valid vat.
In the shop (product page) I added the suffix ‘including vat’ in Woocommerce, but when someone enters a valid vat and goes back to the shop they still see the ‘including vat’ suffix. Any way to hide that when a valid vat is entered in your plugin? Maybe add a css class to the price when it is ex vat?
Hello, I manage invoicing with the Fattura24 plugin (https://it.www.ads-software.com/plugins/fattura24/). Since a recent update, the plugin is no longer marked as compatible, and it displays two VAT fields. How can I fix this?
]]>Hi,
Is adding the VAT number to PDF invoices (from WPOvernight) done automatically or do I need to use a snippet?
I have found this snippet but it’s not working….
/** * Show the VAT number on the invoice */ add_action( ‘wpo_wcpdf_after_billing_address’, function($template_type, $order){ if( $template_type == ‘invoice’) { if ( $vat_number = $order->get_meta( ‘_billing_eu_vat_number’ ) ){ echo ‘<div>VAT: ‘ . $vat_number . ‘</div>’; } } }, 10, 2 );
]]>Hello,
We are considering using the EU/UK VAT Manager plugin for our WooCommerce store. We sell both event tickets (which are always taxed at the base rate) and digital products. For digital products, we need to apply VAT based on the buyer’s country and offer VAT exemptions for businesses with valid VAT numbers. However, we want the VAT exemption to apply only to digital products, not to event tickets.
Is it possible to configure the plugin to handle this scenario?
Thank you!
]]>Good morning,
Is it possible for the field not to turn red when an invalid EU VAT number is entered?
The reason is that a customer who is not a business and not registered on the VIES platform will always have their VAT number marked as invalid, causing the field to turn red. This can be confusing for customers.
]]>Hi there,
in Liechtenstein (Non-EU Country), we would like also to verify if their VAT ID is valid. Unfortunately they have 2 VAT numbers: 1) Liechtenstein VAT number (FR12345) and 2) Swiss VAT Number
Is there a possibility to make the VAT Check in those countries with multiple values? Thanks in advance.
]]>Hi there,
for some reasons, the plugin doesnt recognize or accept swiss VAT IDs. Is there something special I need to take care of it? Unfortunately it says, the VAT ID is not valid.
Thanks in advance.
]]>Hi there,
I’d like to have the option to hide/show this field based on a ‘Business purchase?’ custom checkout field. I’m trying to achieve this functionality but I’m currently stuck on one thing – the VAT should be re-added if the customer unchecks this ‘Business purchase?’ custom field.
On the checkbox change, I’m removing value from #billing_eu_vat_number. However, this does not retrigger VAT calculation. I’ve tried triggering change event on #billing_eu_vat_number, also tried triggering to recalculate the whole cart, but none worked. How can I manually trigger the VAT recaculation?
Regards
]]>Can you remove dots and spaces from the VAT number before validation? I noticed quite a few customers enter VAT numbers with dots (.) in between. I see you are already removing -
in the code, so I suggest adding .
and
.
Code suggestion, in eu-vat-for-woocommerce/includes/functions/alg-wc-eu-vat-functions-validation.php
, line 21
$full_vat_number = str_replace(['-','.',' '],'',strtoupper( $full_vat_number ));
]]>
From 1 January 2024, the standard rate of VAT in Estonia is 22% instead of the current 20%.
]]>I currently can not validate DE VAT IDs server side.
In woocommerce payment form it works.
But when user tries to submit the payment form the validation fails on the server.
In the logging i see that the same VAT ID is parsed with and without DE depending on form validation or server side validation (I have replaced the vat id with 123456789):
Success: VAT ID is valid (Country: [DE]; VAT ID: [123456789]; Company: []; Method: [soap]) 2024-07-17T11:03:32+00:00 Info Error: VAT is not valid (checkout) (Country: [DE]; VAT ID: [DE123456789]; Company: []; Method: [])
Since Brexit, a seller in the Republic of Ireland can collect a VAT number from a customer in Northern Ireland, but not in the rest of Great Britain. Does this plugin allow for that and if so, how?
Thanks.
]]>So i was able to add customers VAT on orders if they forgot to do it or i am manually creating the orders (so i can create Proformas etc) that option is completely gone
https://www.domainname.co.za/wp-admin/post-new.php?post_type=shop_order <– basically
If the customer on their end on frontpage adds their vat at checkout thats fine i see that but cant modify it i have to.
]]>I’ve seen this topic appearing here recently and we’re running into the same problem. The solution proposed in them is to update the plugin and WooCommerce, but we already are on 2.11.8?of the plugin, WooCommerce 9.0.2, WordPress : 6.5.5.
This is from the WordPress debug log:
2024-06-27T00:17:50+00:00Critical Uncaught Error: Call to a member function meta_exists() on null in /var/www/clients/client2/web37/web/wordpress/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1360 Additional context{ “error”: { “type”: 1, “file”: “\/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-content\/plugins\/woocommerce\/includes\/class-wc-checkout.php”, “line”: 1360 }, “backtrace”: [ “”, “#0 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-content\/plugins\/eu-vat-for-woocommerce\/includes\/class-alg-wc-eu-vat-core.php(1123): WC_Checkout->get_value()”, “#1 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-content\/plugins\/eu-vat-for-woocommerce\/includes\/class-alg-wc-eu-vat-core.php(212): Alg_WC_EU_VAT_Core->get_field_data()”, “#2 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-includes\/class-wp-hook.php(324): Alg_WC_EU_VAT_Core->register_additional_checkout_block_field()”, “#3 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#4 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-includes\/plugin.php(517): WP_Hook->do_action()”, “#5 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-content\/plugins\/woocommerce\/includes\/class-woocommerce.php(800): do_action()”, “#6 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-includes\/class-wp-hook.php(324): WooCommerce->init()”, “#7 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-includes\/class-wp-hook.php(348): WP_Hook->apply_filters()”, “#8 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-includes\/plugin.php(517): WP_Hook->do_action()”, “#9 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-settings.php(695): do_action()”, “#10 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-config.php(96): require_once(‘…’)”, “#11 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-load.php(50): require_once(‘…’)”, “#12 \/var\/www\/clients\/client2\/web37\/web\/wordpress\/wp-cron.php(46): require_once(‘…’)”, “#13 {main}”, “thrown” ] }
Hi, I am getting a fatal error when I try to login to the dashboard when this plugin is enabled. When I disable it I can log in fine. Can you help please?
This is the email I get from WordPress
When seeking help with this issue, you may be asked for some of the following information:
WordPress version 6.5.5
Active theme: Divi-child (version 4.5.1)
Current plugin: WooCommerce (version 9.0.2)
PHP version 7.4.33
Error Details
=============
An error of type E_ERROR was caused in line 1360 of the file /home/sites/33b/b/b45bab9faf/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php. Error message: Uncaught Error: Call to a member function meta_exists() on null in /home/sites/33b/b/b45bab9faf/public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1360
Stack trace: 0 /home/sites/33b/b/b45bab9faf/public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php(1119): WC_Checkout->get_value(‘billing_country’) 1 /home/sites/33b/b/b45bab9faf/public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php(204): Alg_WC_EU_VAT_Core->get_field_data() 2 /home/sites/33b/b/b45bab9faf/public_html/wp-includes/class-wp-hook.php(324): Alg_WC_EU_VAT_Core->register_additional_checkout_block_field(”) 3 /home/sites/33b/b/b45bab9faf/public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array) 4 /home/sites/33b/b/b45bab9faf/public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array) 5 /home/sites/33b/b/b45bab9faf/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(800): do_action(‘woocommerce_i
]]>[26-Jun-2024 10:26:52 UTC] PHP Fatal error: Uncaught Error: Call to undefined function woocommerce_register_additional_checkout_field() in /home/…/public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php:208
Stack trace:
#0 /home/…/public_html/wp-includes/class-wp-hook.php(310): Alg_WC_EU_VAT_Core->register_additional_checkout_block_field()
#1 /home/…/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#2 /home/…/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#3 /home/…/public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(703): do_action()
#4 /home/…/public_html/wp-includes/class-wp-hook.php(310): WooCommerce->init()
#5 /home/…/public_html/wp-includes/class-wp-hook.php(334): WP_Hook->apply_filters()
#6 /home/…/public_html/wp-includes/plugin.php(517): WP_Hook->do_action()
#7 /home/…/public_html/wp-settings.php(632): do_action()
#8 /home/…/public_html/wp-config.php(128): require_once(‘/home/micron/pu…’)
#9 /home/…/public_html/wp-load.php(50): require_once(‘/home/micron/pu…’)
#10 /home/…/public_html/wp-blog-header.php(13): require_once(‘/home/micron/pu…’)
#11 /home/…/public_html/index.php(17): require(‘/home/micron/pu…’)
#12 {main} thrown in /home/…/public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php on line 208
]]>Hi,
We are experiencing some issues related to shopping cart and checkout.
There is an incompatibility between your plugin and Country Restrictions for WooCommerce. If both plugins are active together, we are unable to add products to the shopping cart. Within the product or store page if I add a product everything looks fine, but when I go to my cart the cart is empty.
We then disabled the Country Restrictions for WooCommerce plugin (even though it is necessary for us) and the cart and checkout started working again, but in my error log I keep getting this error related to your plugin. Can you give us support on what is causing this error? Because maybe it is the same problem that causes the Cart and Checkout to break when active together with the other plugin.
Also, we had to disable your plugin because it was generating a MySQL error that prevented the import of products via REST API from one woocommerce site to another.
Please this is a major problem for us.
[26-Jun-2024 08:05:03 UTC] PHP Fatal error: Uncaught Error: Call to a member function meta_exists() on null in /public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php:1360
Stack trace:
#0 /public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php(1132): WC_Checkout->get_value('billing_company')
#1 /public_html/wp-content/plugins/eu-vat-for-woocommerce/includes/class-alg-wc-eu-vat-core.php(204): Alg_WC_EU_VAT_Core->get_field_data()
#2 /public_html/wp-includes/class-wp-hook.php(324): Alg_WC_EU_VAT_Core->register_additional_checkout_block_field('')
#3 /public_html/wp-includes/class-wp-hook.php(348): WP_Hook->apply_filters(NULL, Array)
#4 /public_html/wp-includes/plugin.php(517): WP_Hook->do_action(Array)
#5 /public_html/wp-content/plugins/woocommerce/includes/class-woocommerce.php(800): do_action('woocommerce_ini...')
#6 /public_html/wp-includes/class-wp-hook.php(324): WooCommerce->init('')
#7 in /public_html/wp-content/plugins/woocommerce/includes/class-wc-checkout.php on line 1360
]]>