Plugin Author
flinnn
(@flinnn)
Hi sihapandita,
thanks for reaching out.
Are you using a plugin to support multiple currencies at the same time, if so which one? Or did you change the currency in the WooCommerce settings?
I plan to include a feature in the upcoming update of Donation Platform for WooCommerce to make it compatible with YayCurrency.
Best regards,
Jonas
Thank you for the prompt response.
Currently only with woocommerce currency switcher widget and also plugins Multi Currency for WooCommerce and WooCommerce Currency Switcher none of it works. I tried other similar donation or tips plugins and they too does not really work. May I know when will this new update be as I need it urgently. Thank you so much Jonas.
Plugin Author
flinnn
(@flinnn)
You can use the following steps to use multiple currencies at the same time (quick and dirty short term fix):
1. install YayCurrency
2. configure the plugin, set currency exchange rate to 1 to 1
3. use code snippets to add the following code:
use Yay_Currency\WooCommerceCurrency;
$yay = WooCommerceCurrency::getInstance();
remove_filter( 'woocommerce_product_get_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_product_get_regular_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_product_get_sale_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_product_variation_get_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_product_variation_get_regular_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_product_variation_get_sale_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_variation_prices_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_variation_prices_regular_price', array($yay, 'custom_raw_price'), 10, 2 );
remove_filter( 'woocommerce_variation_prices_sale_price', array($yay, 'custom_raw_price'), 10, 2 );