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

woocs_exchange_value Action Missing Currency Symbol

This support system is for all types of the plugins as for premium versions, so for free ones! If you have premium version do not forget in the private data of the request (!!not in the text of the support request!!) after its publishing insert purchase code please (see blue-green button on the right side) and press Save button.
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.

I am using the woocs_exchange_value action which is working fine, however, it only returns the value. The currency symbol is missing. How can I include this symbol?

Hello

You can use next code:

global $WOOCS;
echo $WOOCS->get_symbols_set($WOOCS->current_currency);

 

Thank you for your reply.

The code you provided appears to be returning an array of currency symbols. All I am looking for is to have the currency symbol included with the value returned by the woocs_exchange_value action. Is there no way to do that? Or is additional coding required to determine the current exchange currency and how to add the symbol to the value returned by woocs_exchange_value? E.g., left side, right side, include space, do not include space, etc.

Hello

Please  use this -  https://woocommerce.wp-a2z.org/oik_api/wc_price/

Thank you. That was what I was looking for.

Didn't realize it was just a native WC function.

Hello

Welcome;)