[Resolved] The currency symbol does not change when switching the country
This thread is resolved. Here is a description of the problem and solution.
Problem:
I have set up the WPML on my website and chosen the currency based on the site language.
Could you provide me a hook to switch currency based on the checkout page country location?
If I change the checkout page country location, the currency must change.
Solution:
Changing the country on the checkout page is not supposed to change the currency of the product. In other words, what you expect on the checkout page will not happen with WooCommerce Multilingual & Multicurrency features. However, you can add a Language Switcher to the site, and the users of your site will be able to change the currency, and this way, have the expected currency on the checkout page. You can read about adding a currency switcher in our guide here.
I have setup the wpml on my website hidden link
and chooses the currency based on site language. Could you provide me hook to switch currency based on checkout page country location? if i change the checkout page country location then currency need to change.
I discussed this issue with our second-tier supporters. It turns out that changing the country on the checkout page is not supposed to change the currency of the product. In other words, what you expect on the checkout page will not happen with WooCommerce Multilingual & Multicurrency features. However, you can add a Language Switcher to the site, and the users of your site will be able to change the currency, and this way, have the expected currency on the checkout page. You can read about adding a currency switcher in our guide here.
You wrote: "This works when we switch to "Client Location".
I must mention that I based my answer on this fact - "Site Language" is set on the site. I saw this on your site when I checked it while we were in chat. And this is also the setting I see on your site now. Please see the attached screenshot.
You asked:
1) Can we get a switcher Shortcode which can be used even when we are on " Client Location " Setting.
In most cases, the currency switcher should show on the site even if you use the "Client Location" option. I wrote "in most cases" because if you set the currency to show only for specific countries, then the currency will not show because only one currency is set for this country. I tested this scenario on my test site. If "Client Location" is selected and the currencies are set to show for "All countries" then the currency switcher will show.
Whether you set the currency from the default settings or use the shortcode, the above is true. You can see this section of our guide on the currency switcher shortcode.
Otherwise, what you are trying to achieve is custom work, which is outside the scope of our support forum. In this case, if you need further help with what you are trying to achieve, I would suggest you consider contacting one of our certified partners from this link: