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.

WordPress 6.7 has introduced a new issue that impact translations, please update WooCommerce and WPML to the latest versions before you report issues. More about this here - https://wpml.org/errata/php-error-wp-6-7-notice-function-_load_textdomain_just_in_time-was-called/
Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 12:00 – 16:00 -

Supporter timezone: Europe/Zagreb (GMT+01:00)

This topic contains 10 replies, has 3 voices.

Last updated by Dražen Duvnjak 5 hours, 4 minutes ago.

Assisted by: Dražen Duvnjak.

Author Posts
August 23, 2022 at 8:01 am #11909709

torbjornE-2

Hello! I was originally intending to create a support ticket for this but when I'm trying to create the ticket I'm getting no indication that it has been submitted. So I'm using the live chat instead. Here is my issue - Wrong currency used when renewing WooCommerce subscription after subscription payment has failed due to expired/invalid payment details (i.e expired credit card)

Summary:

If a WooCommerce subscription autorenewal fails as a result of e.g an expired credit card and the customer tries to restart the subscription with new payment details - WooCommerce Multilingual & Multicurrency will change the currency of the new payment to one based on customer location (or chosen language) instead of the original currency used to start the subscription.

Background:

I have WooCommerce Multilingual & Multicurrency on my site as well as WooCommerce Subscriptions. I have an English version of my site as well as a Swedish one. I have the site setup so that if the customer is on the Swedish version of the site SEK will be used when making purchases (and creating a subscription). If they are on the English version they will pay in EUR instead.

How to reproduce (an example scenario):

- A WooCommerce subscription is active on my site. The customer originally set up the subscription using a credit card and paid with EUR.
- All automatic renewals of the subscription thus uses EUR as it should.
- Suddenly one of the renewals stop working - the credit card of the customer has expired. They need to put new credit card information to renew the subscription.
- The issue happens they've put in their new credit card details and try to renew the subscription. If they are on the English version of the site - everything works as it should. The subscription is renewed and they pay in EUR as per usual. However, if they are on the Swedish version of the site - the currency suddenly changes to SEK. But not the amount. So if the subscription was for 10 EUR originally they will suddenly pay 10 SEK instead.

This bug needs to be fixed as it is taking a lot of time from me to fix once it happens. Furthermore this is causing a lot of stress for my customers. I have one product that I am selling for 2250 SEK per year. But with this bug suddenly I've drawn 2250 EUR from the clients' account. It is quite embarrassing and is making me loose face in front of the clients. So I would be extremely thankful if this could be prioritized.

August 23, 2022 at 8:23 am #11909833

Andrés
Supporter

Languages: English (English ) Spanish (Español ) French (Français )

Timezone: Europe/Paris (GMT+01:00)

I have created a test website with a clean WordPress install. You can access it through this link:
hidden link

Please upload only your plugin WooCommerce Subscriptions to this test install and setup it the same way as in your website. In this way we can check if this is a compatibility issue.


Please note that we only need the plugin and the related functionality, you don't need to setup a entire website or clone your existing site.

https://wpml.org/faq/how-to-reproduce-issues-and-share-them-with-wpml-support/

Regards

August 23, 2022 at 8:34 am #11909913

torbjornE-2

Hey Andres,

Thank you for the chat and for creating the ticket. I realized something now though. If I am to install WooCommerce Subscriptions to this demo site I would need an additional license for the plugin which I would have to pay for (buying an additional license to troubleshoot this seems a bit excessive).

Therefore I wanted to ask you – since there is already quite a bit of support added to the WooCommerce Multilingual & Multicurrency plugin for WooCommerce Subscriptions – is it possible that you guys have a license of some sort that we’d be able to use in this demo sandbox?

/Carl

August 25, 2022 at 6:28 am #11926555

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Carl,

I will be taking over and helping you further.

Actually, you do not need a license for WooCommerce Subscriptions to function correctly. And since we are going to use it only for debugging purposes,I do not think it is again any policy.

I have installed the plugin and you can continue with reproducing steps.

Please try to reproduce the issue and share clear steps with us, this will help escalate the issue quickly to our compatibility team.

Thanks,
Drazen

August 28, 2022 at 3:49 pm #11944591

torbjornE-2

Hey Drazen,

Ah, that makes sense. Many thanks for this. I'll make sure to set up everything and reproduce the issue during the week then 🙂

/Carl

August 29, 2022 at 5:34 am #11946175

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Carl,

great, thanks.

Take your time, let me know how it goes.

Thanks,
Drazen

August 30, 2022 at 7:13 pm #11959975

torbjornE-2

Hey Drazen,

I have now managed to recreate the issue in the test environment. The setup is -

- There is one subscription product that has been created with an English version and a Swedish version
- The English version is sold for 10 EUR and the Swedish one for 100 SEK.
- Two subscriptions has been created - both are created by buying the Swedish version for 100 SEK

The first one has already had a successful first payment of 100 SEK. After that I made sure that the renewal failed due to a faulty card. I then tried to pay that order again but from the English site which transformed the subscription value from 100 SEK to 100 EUR. Thus if you look at the two orders attached to the first subscription you'll see that the first one is for 100 SEK and the second one for 100 EUR.

The second subscription is pretty much a copy of the first one except I havn't tried to renew the subscription by paying for the second order yet. So you'll see how it looks like in that state as well.

Let me know if this is enough information from me or if you require anything further.

/Carl

August 31, 2022 at 7:29 am #11961693

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for getting back and taking time to reproduce the issue.

I can see the problem on test site, and it looks like a bug that should be checked further.

I am trying to replicate the issue from scratch on another test site to understand the process and steps, but I am not getting the same result.

Can you please share more info or a video of the steps? I am not sure about this part:

The first one has already had a successful first payment of 100 SEK. After that I made sure that the renewal failed due to a faulty card. I then tried to pay that order again but from the English site which transformed the subscription value from 100 SEK to 100 EUR. Thus if you look at the two orders attached to the first subscription you'll see that the first one is for 100 SEK and the second one for 100 EUR.

I am trying to pay for the failed subscription order, but it loads a fine price in EUR for me, probably I am doing it wrong.

Please let me know.

Thanks,
Drazen

August 31, 2022 at 9:17 am #11963201

torbjornE-2

Hey Drazen,

Hopefully this video will shed some light on the issue:

hidden link

Let me know if things are still unclear.

/Carl

August 31, 2022 at 10:54 am #11964155

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello Carl,

thanks for getting back and sharing a video, it was very helpful.

I was able to reproduce and confirm the issue.

I've now escalated this to our compatibility team for a further look. I will update you as soon as I have some news.

Thank you for your patience.

Regards,
Drazen

September 2, 2022 at 6:22 am #11975879

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

thanks for the patience.

Our dev checked and it seems to be a bug, that will need some further development and debugging.

In the meantime we suggest using the next workaround:

- Go to Woocommerce > Woocommerce Multilingual > Multicurrency > Currencies
- Enable both currencies for both languages
- Scroll down to "Product page Currency Switcher" and disable the currency switcher
- With these settings, the client will see 100kr to be paid, so the issue does not happen

Let me know how it goes and I will update you when I have some news.

Kind regards,
Drazen

November 28, 2024 at 3:09 pm #16456069

Camilo

Hi @Dražen,

I'm experiencing this after over 2 years that this ticket was raised.

Any idea if this was fixed?

I've seen similar things happening with other currency plugins, so I'm wondering if this could be Woo's bug and not WPML's.

Any insight besides the solution posted on your last comment would be helpful.

Thanks,

November 29, 2024 at 7:34 am #16457911

Dražen Duvnjak
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+01:00)

Hello,

I am afraid not, it is still in development since there where other priorities, but it is scheduled for one of the later WCML releases.

I can not share any other info or ETA on this, but I will update you when I have something or the version is released.

Regards,
Drazen