Skip Navigation

This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 8:00 – 17:00 -
- - - - - - -

Supporter timezone: Europe/Madrid (GMT+02:00)

This topic contains 3 replies, has 3 voices.

Last updated by Paola Mendiburu 1 year ago.

Assisted by: Paola Mendiburu.

Author Posts
April 4, 2024 at 3:39 pm #15484711

takioH

We use the "EAS EU Compliance" plugin, which provides VAT calculation functions for EU customers. EAS support teams supply this error.

I am trying to:
change the country on the checkout page in the billing address fields

Link to a page where the issue can be seen:
hidden link
NOTE: put some items into the basket in advance.

I expected to see:
Changing the country in the billing address field will cause the drawing of a new field(see image: vat-field.png).

Instead, I got:
An error as below(see image: error.png), and the new field doesn't appear.

Uncaught Error: Call to a member function get_setting() on null in /var/www/html/wp-content/plugins/woocommerce-multilingual/classes/multi-currency/payment-gateways/class-wcml-currencies-payment-gateways.php:147 Additional context{ "error": { "type": 1, "file": "\/var\/www\/html\/wp-content\/plugins\/woocommerce-multilingual\/classes\/multi-currency\/payment-gateways\/class-wcml-currencies-payment-gateways.php", "line": 147 }, "backtrace": [ "", "#0 \/var\/www\/html\/wp-includes\/class-wp-hook.php(310): WCML_Currencies_Payment_Gateways->filter_gateway_description()", "#1 \/var\/www\/html\/wp-includes\/plugin.php(205): WP_Hook->apply_filters()", "#2 \/var\/www\/html\/wp-content\/plugins\/woocommerce\/includes\/abstracts\/abstract-wc-payment-gateway.php(318): apply_filters()", "#3 \/var\/www\/html\/wp-content\/plugins\/woocommerce\/templates\/checkout\/payment-method.php(28): WC_Payment_Gateway->get_description()", "#4 \/var\/www\/html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(345): include('\/var\/www\/html\/w...')", "#5 \/var\/www\/html\/wp-content\/plugins\/woocommerce\/templates\/checkout\/payment.php(30): wc_get_template()", "#6 \/var\/www\/html\/wp-content\/plugins\/woocommerce\/includes\/wc-core-functions.php(345): include('\/var\/www\/html\/w...')", "#7 \/var\/www\/html\/wp-content\/pl" ] }
vat-field.png
error.png
April 5, 2024 at 8:40 am #15486860

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support.

I understand the issue. While checking, I found that the additional field that you're talking about doesn't appear in the English version, but, I noticed that field in the French version of the site. Please check this screenshot: hidden link

However, Please note that the plugin you mentioned, "EAS EU Compliance," appears to be a new plugin and it is currently not listed in the compatible directory of WPML. You can also check from here as well: https://wpml.org/plugin/

Therefore, the issue you're having could be a compatibility issue as well. However, if you're able to reproduce the issue within our sandbox environment, I can delve deeper into investigating the matter. Below, you'll find the autologin link to access our sandbox site.

- hidden link

The WPML and other addons are already installed in the sandbox. Once you're logged in, please install the "EAS EU Compliance" plugin, configure the plugin and WPML according to your main site, and try to replicate the issue in the sandbox.

If you're able to reproduce the issue, please let me know. I'll review it and guide you accordingly.

Additionally, consider reaching out to the "EAS EU Compliance" plugin's support team and suggest their participation in WPML's Go-Global program. For their reference and more details about the program, you can share this link: https://wpml.org/documentation/support/go-global-program/.

Looking forward to your response.

Best regards,
Prosenjit

April 12, 2024 at 4:11 am #15511247

takioH

Thank you for your reply. EAS support did the plugin configuration, and I don't know how. So, the only thing I can do is send this reply to the EAS support team, not try to reproduce the issue in the sandbox.

> I understand the issue. While checking, I found that the additional field that you're talking about doesn't appear in the English version, but, I noticed that field in the French version of the site. Please check this screenshot: hidden link

It seems you do not fully understand the features provided by the plugin. The plugin treats EU VAT charges. We are currently addressing the issue by modifying the default settings of WooCommerce so that the buyer's default country is automatically set based on their IP address. In any case, errors certainly occur when the fields are redrawn. I don't believe this is a plugin compatibility issue, however.

April 12, 2024 at 10:17 am #15512463

Paola Mendiburu
WPML Supporter since 11/2020

Languages: English (English ) Spanish (Español ) Italian (Italiano )

Timezone: Europe/Madrid (GMT+02:00)

Hi there!

This is Paola and I will continue with the ticket as Prosenjit is on holiday.

Ok so please ask the EAS support to do the plugin configuration on the sandbox in order to investigate the issue.

Please let me know when it is done.

The topic ‘[Closed] JS error occured in WooCommerce Checkout page when country is changed’ is closed to new replies.