This thread is resolved. Here is a description of the problem and solution.
Problem: The client needed a way to display the currency code instead of the symbol across various sections of their WooCommerce site, including product pages, store, cart, and checkout.
Solution: We recommended a temporary solution to display the currency code everywhere on the site. Here are the steps we suggested: 1. Take a backup of your site and database. 2. Edit your active theme's functions.php file. 3. Add the following code at the end of the file:
Additionally, if you want to edit the currency switcher: 1. Go to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Multicurrency. 2. Scroll down to "Product page Currency Switcher" section. 3. Edit the currency switcher and remove "%symbol%" from "Template for currency switcher" field. 4. Save the changes.
For more details on managing multi-currency in WooCommerce, please see our documentation.
If this solution does not apply to your case, or if it becomes outdated, we highly recommend checking related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. Should you need further assistance, please open a new support ticket.
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.
Background of the issue:
I am trying to resolve an issue with the multi-currency option on my website. The problem is that the website displays the "$" symbol for multiple currencies, including Chilean peso, Argentinian peso, Colombian peso, American dollars, etc. This makes it unclear which currency is being used during transactions. I would prefer to use the currency code instead of the "$" symbol, such as ARS for Argentinian peso, CLP for Chilean peso, and USD for American dollar. I am following the documentation at https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/?utm_source=plugin&utm_medium=gui&utm_campaign=wcml.
Symptoms:
The website shows "$" for multiple currencies, making it unclear which currency is being used during the cart and checkout process.
Questions:
How can I configure WPML to display currency codes instead of the "$" symbol?
This is not a bug, so updating WordPress and plugins won't do anything.
This is what I am trying to explain:
- If you are in Argentina, the local currency is the 'Argentinian peso', and the symbol is $ (Argentinian peso)
- If you are in the USA, the local currency is the 'US dollar', and the symbol is $ (US dollar)
- If you are in Chile, the local currency is the 'Chilean peso', and the symbol is $ (Chilean peso)
WHICH MEANS:
If I was just operating in one country (e.g. USA), and the transactions were expressed in "$", that would be fine, because it would be clear that it's referring to USD.
BUT THE PROBLEM IS: in this case we are talking about a website that operates internationally with different currencies, so having the symbol "$" for many currencies is bad, because it's unclear which currency is being used during the cart and checkout process. And even after the user has made the payment, if we go to the order details, we just see amount expressed with the "$" symbol (without the currency code), so we can't know which currency the user paid in.
TO REPLICATE THIS ISSUE: you can create any staging site and activate WPML multicurrency. Then, in the settings, add a few currencies (for example, US dollar, Argentinian peso, Colombian peso, and Mexican peso). You will see what I mean: all of them are expressed as "$" in the front end (as opposed to having USD, ARS, CLP, MXP, which are the currency codes)
Our team has registered it as a feature request but there's no ETA for this so far.
However, they've provided the following temporary solution, which 'll show currency code (instead of symbol). But please note that it 'll be displayed everywhere (i.e. product page, store, cart, checkout and etc).
- Take backup of your site and database.
- Edit your active theme's functions.php file.
- Add following code at the end of the file:
Yes you can do that by editing the currency switcher:
- Go to WooCommerce -> WooCommerce Multilingual & Multicurrency -> Multicurrency.
- Scroll down to "Product page Currency Switcher" section.
- Edit the currency switcher.
- Remove "%symbol%" from "Template for currency switcher" field (see attached).
- Save.
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.