Did you ever find out how to change the displayed currency names?
Hi,
Sorry for the delay.
Where do you want to display the currency names? Do you want to replace the currency symbols by currency names on frontend?
I have a modal popup with the 3 currencies for selection
So far I have the ISO code and symbol, but client requests “US Dollar” “Euro” written there, and the names displayed are far longer
Can you please paste here the code you are using?
Its completely custom but the switcher is displayed using shortcode
<?php echo do_shortcode('[woocommerce_currency_switcher_link_list]'); ?>
And item format in settings is set to:
%currency_code% %currency_symbol%
If I use
%currency_name%
the names that are displayed look horrible, for example
United States (US) dollar
So I would like to write my own custom name, so it would be
%currency_symbol% %currency_name%
And display
$ Dollar
But I guess it is not possible
It certainly is, feel free to set your own class Example: <a class="cart-custom-totals">appended and design it to match your theme.
-
This reply was modified 7 years, 8 months ago by
xolite.
-
This reply was modified 7 years, 8 months ago by
xolite.
Thanks but I am not sure I understand your answer. How will setting a class help me change the display name of the currency?