User Selected currency on Checkout page.
-
Hello there,
Thanks for the great plugin. I want to display amount in user selected currency on checkout page. I know there is option for allowed multiple but it forces to make payment in user selected currency. I just wanted to display user selected currency on checkout page for information purpose. payment should me made in default currency.
I have done some research to achieve this but not found any easy way. finally I wrote a code for achieve this. code is given below.
add_filter( "option_woocs_is_multiple_allowed", "alter_option_woocs_is_multiple_allowed", 10, 2 ); function alter_option_woocs_is_multiple_allowed( $value, $option ){ if( is_checkout_pay_page() ){ return $value; } return true; }
So, my question is that, is there any other way to achieve this? and if I use above code then any chances to get conflict with plugin’s functionality? its working fine currently I just want to confirm it will not create any issue in future.
Thanks,
Dharmesh
- The topic ‘User Selected currency on Checkout page.’ is closed to new replies.