
belledesign(@belledesign)
4 Posts
Customers
Quote from belledesign on May 26, 2020, 06:35
Hi there
Hi there
I am wanting to know how to remove the , from in between the currency code and the currency symbol in the currency dropdown. For example, USD, $ would become USD $.
I am using a shortcode to add the dropdown to the top of my website (using 'style=1'). I can make the change directly in the plugin files, but I would obviously rather add a filter to my functions.php files. I have tried using the 'woocs_currname_in_option' filter, but I just can't seem to get it right!
If you need reference, my staging site is here: http://0xf.f0e.myftpupload.com
Thanks for you help!
Rebecca
Hi there
Hi there
I am wanting to know how to remove the , from in between the currency code and the currency symbol in the currency dropdown. For example, USD, $ would become USD $.
I am using a shortcode to add the dropdown to the top of my website (using 'style=1'). I can make the change directly in the plugin files, but I would obviously rather add a filter to my functions.php files. I have tried using the 'woocs_currname_in_option' filter, but I just can't seem to get it right!
If you need reference, my staging site is here: http://0xf.f0e.myftpupload.com
Thanks for you help!
Rebecca

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 26, 2020, 13:01
Hello Rebecca
Check please this option - https://c2n.me/47HvjAu.png
And use a filter. Example:
add_filter('woocs_currname_in_option', function($name){
if($name=='USD'){
$name.=' $';
}
return $name;
});
Hello Rebecca
Check please this option - https://c2n.me/47HvjAu.png
And use a filter. Example:
add_filter('woocs_currname_in_option', function($name){
if($name=='USD'){
$name.=' $';
}
return $name;
});

belledesign(@belledesign)
4 PostsTopic Author
Customers
Quote from belledesign on May 27, 2020, 04:27
Hi there
Thank you for your swift reply.
I am almost there! But, I need to remove the trailing ,$
With the above code I get the concatenation of name and symbol, but not the removal of the ,$. The result is: USD $,$ (see here: http://0xf.f0e.myftpupload.com/shop). However I need it to read: USD $ (and AUD $ and NZD $).
I have tried a str_replace() without much luck. Do have a further suggestion (sorry if I am missing something really obvious!).
Thank you!
Hi there
Thank you for your swift reply.
I am almost there! But, I need to remove the trailing ,$
With the above code I get the concatenation of name and symbol, but not the removal of the ,$. The result is: USD $,$ (see here: http://0xf.f0e.myftpupload.com/shop). However I need it to read: USD $ (and AUD $ and NZD $).
I have tried a str_replace() without much luck. Do have a further suggestion (sorry if I am missing something really obvious!).
Thank you!

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 27, 2020, 10:38
Hello
Did you check it - https://c2n.me/47HvjAu.png ?
if no luck - drop me wp-admin access
Hello
Did you check it - https://c2n.me/47HvjAu.png ?
if no luck - drop me wp-admin access

belledesign(@belledesign)
4 PostsTopic Author
Customers
Quote from belledesign on May 28, 2020, 07:15
Hi there
Thanks for getting back to me.
Yes, I have checked the show money signs option in the Options tab and still no joy ;-/
I am probably missing something obvious, but if you could take a look, that would be great.
Login details are:
PRIVATE DATA!
Thanks!
Hi there
Thanks for getting back to me.
Yes, I have checked the show money signs option in the Options tab and still no joy ;-/
I am probably missing something obvious, but if you could take a look, that would be great.
Login details are:
PRIVATE DATA!
Thanks!

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 28, 2020, 10:24
Hello
I mean - The setting should be the same - https://c2n.me/47HvjAu.png Result - https://c2n.me/47JBGsM.png
Hello
I mean - The setting should be the same - https://c2n.me/47HvjAu.png Result - https://c2n.me/47JBGsM.png

belledesign(@belledesign)
4 PostsTopic Author
Customers
Quote from belledesign on May 29, 2020, 01:32
Oh sorry - I misunderstood that part. Ok, I will try that. Thank you.
Oh sorry - I misunderstood that part. Ok, I will try that. Thank you.

Pablo Borysenco(@pavlo_borysenco)
34,196 Posts
Quote from Pablo Borysenco on May 29, 2020, 10:59
Hello
Welcome;)
Hello
Welcome;)