• Resolved sihapandita

    (@sihapandita)


    currently I am using radio buttons and ive set a few different amounts for people to choose the payment amount.

    But when i change the currency, the currency symbol changed, but the amount did not change. Is there a way to set the different amounts at the radio box to change accordingly too?

    Thank you so much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    Thread Starter sihapandita

    (@sihapandita)

    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 );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘currency does not switch at donation box’ is closed to new replies.