Languages: English (English )Spanish (Español )Portuguese (Brazil) (Português )
Timezone: America/Sao_Paulo (GMT-03:00)
Hi there, welcome to the WPML support Forum!
While you are waiting for one of my colleagues to take this ticket and work on it, let me provide you with first debugging steps or if I can perhaps help with the issue quickly.
Could you please elaborate a little more on this issue, so we can better understand? E.g. The link of the page, steps you've tried, etc.
Sometimes screenshots illustrating what you mean may go a long way to clarify what words fail to transmit, so if you like, make use of “upload an image” below the comment area.
I need to switch the currency of the user based on what country they select on the Checkout page. I have written the code for that but Don't know the right hook to use. Can you help with that?
By default, WooCommerce Multilingual (WCML) supports switching currency based on the client's location. It is set up in admin area > WooCommerce > WooCommerce Multilingual > Multicurrency.
On the checkout page, if the customer changes the billing address, the currency is changed also.
If you select to change the currency based on site language, I'm afraid that there isn't an option to change the currency when changing the billing address.
If you want to use a custom code, you can take a look at the filter https://wpml.org/wcml-hook/wcml_client_currency/
But I would like to inform you that helping you with custom code, is out of the scope of WPML.
If you are not able to accomplish this, I would recommend you contact one of our certified partners who will be more than happy to help you with this. In this link, you will find a list of our certified partners: https://wpml.org/contractors/
Thanks.
The topic ‘[Closed] Switcher’ is closed to new replies.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.