Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client needed a way to ensure that European customers only see prices in Euros and UK customers only see prices in GBP, without the ability to manually change the currency. Additionally, they inquired about hiding the currency switcher on the product template.
Solution:
We advised setting the currency based on the client's location using WooCommerce Multilingual's Multi-Currency settings. For more details, see the documentation here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currencies-per-location
To prevent users from changing the currency manually, we suggested hiding the currency switcher on the frontend. This can be done from the WooCommerce Multilingual settings under the MultiCurrency tab, specifically in the Product page Currency Switcher section.

If this solution does not fully address your issue, or if it seems outdated, we recommend opening a new support ticket. Additionally, please check related known issues at https://wpml.org/known-issues/, verify the version of the permanent fix, and confirm that you have installed the latest versions of themes and plugins. For further assistance, you can also visit our support forum at https://wpml.org/forums/forum/english-support/.

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.

This topic contains 5 replies, has 2 voices.

Last updated by Bigul 4 months, 2 weeks ago.

Assisted by: Bigul.

Author Posts
July 15, 2024 at 3:13 pm #15955292

clareQ

Background of the issue:
Hi there, we are using WPML along with WooCommerce multilingual. We have two currencies setup, GBP and Euro's. Currently if you switch between languages the currency will also change. Our client has asked if is is possible to make it so that European customers can only see the euro price and UK based customers can only see the GBP price. Do you know if this is possible? So they can switch language but the currency will stay the same for them. I was thinking something along the lines of maybe it can set the currency based on the country set in the users profile?

Symptoms:
Currently if you switch between languages the currency will also change.

Questions:
Is it possible to make it so that European customers can only see the euro price and UK based customers can only see the GBP price?
Can the currency be set based on the country set in the user's profile?

July 15, 2024 at 3:25 pm #15955384

Bigul
Supporter

Languages: English (English )

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

Hello,

Welcome to the WPML support forum. I will do my best to help you to resolve the issue.

To help you faster, I've enabled debug information for this support ticket. Please see this link for how to get this information from your site and give it to us: http://wpml.org/faq/provide-debug-information-faster-support/

We can set the currency by the client location. Please check the following documentation for more details and let us know your feedback.

https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currencies-per-location

--
Thanks!

Bigul

July 16, 2024 at 8:21 am #15958899

clareQ

Hi Bigul thank you. With location based currency can the user still change the currency manually. As we don't want them to be able to. Is it possible for WPML to set the currency based on the language set in the users profile?

July 16, 2024 at 11:47 am #15960295

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. The users can only change the currency when the currency switcher is visible on the frontend, you can hide it.

We can only set the Currency by language from WooCommecer Mulitlingial>>MultiCurrency settings. Refer to the following documentation for more details.

hidden link

https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#currencies-per-language

--
Thanks!

Bigul

July 17, 2024 at 9:28 am #15965173

clareQ

Thank you Bigul. How do I hide the currency switcher on the frontend that shows on the single product template? I could do it with CSS but is there a checkbox somewhere?

I have managed to set the user currency programmatically via this filter which I think should work for us: https://wpml.org/wcml-hook/wcml_client_currency/

July 17, 2024 at 4:33 pm #15967469

Bigul
Supporter

Languages: English (English )

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

Hello,

Thank you for the updates. Happy to know you are getting the expected results now.

Normally we have an option to hide the Multicurrency switcher from the Product Template page ( WooCommerce>>WooCommerce Multilingual>>Multicurrency>>Product page Currency Switcher). Please check the attached image for more details.

--
Thanks!

Bigul

2024-07-17_22h02_22.png
July 18, 2024 at 1:17 pm #15972746

clareQ

Thanks Bigul that resolves the problem.