PluginUs.Net - Business Tools for WooCommerce and WordPress

[realize your idea - make your dreams come true]

Support Forum

You need to log-in to create request (topic) to the support

how can i show a current curreny Symbol

The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday. If you have problems with registration ask help on contact us page please
If you not got email within 24~36 business hours, firstly check your spam box, and if no any email from the support there - back to the forum and read answer here. DO NOT ANSWER ON EMAILS [noreply@pluginus.net] FROM THE FORUM!! Emails are just for your info, all answers should be published only here.
The support doesn work on Saturdays and Sundays, so some Friday requests can be answered on Monday.

hello,

i just purchased the pro plugin and have added multiple currencies. I have some custom code to show the price

<p class="woocommerce-loop-product__title sale_bubble"><span class="sale_text">' . $custom_text . '</span><span style="margin-left:0px;" class="sale_text">' . ' $' . $sale_price . '</span></p>

I want to know how can i replace the hard coded $ sign to the current currencies symbol?

Hello

Please try this function - https://currency-switcher.com/function/woocs-current_currency

global $WOOCS;
echo $WOOCS->current_currency;
//will print for example 'USD'

I dont want to show USD i would like to show $ or Pound or EURO currency sign. is there a way to extract the symbol from this function?

ok i figured it out
global $WOOCS;
$symbol = $WOOCS->get_default_currency_symbol($WOOCS->current_currency);

however, this does the regular symbol for example AUD should $ and not the custom A$ that i have set for it

Hello

Ok!

global $WOOCS;

$currencies=$WOOCS->get_currencies();

var_dump($currencies[$WOOCS->current_currency]['symbol']);

thank you

Welcome;)

Hello,

 

I am using $symbol = $WOOCS->get_default_currency_symbol($WOOCS->current_currency); to get the currency symbole

 

but its not pulling the custom symbols do you know how i can do this? it picks up EU and Pounds but for CA and AU it picks up $ and not my custom ones CA$ AU$

Hello

Try to take the entire array of prices and all the necessary data is there - https://currency-switcher.com/function/woocs-get_currencies