• Resolved tmf33

    (@tmf33)


    For days i try to setup givewp with BTC currency (8 digits).

    [General] -> [Currency] -> [Number of Decimals]
    No matter what i try, i always get the following error message:


    The ‘Number of Decimals’ option has been automatically set to 5 because you entered a number higher than the maximum allowed.

    Despite the fact that BTC already was natively in givewp currency options, I setup the cutom currency function found here:

    https://github.com/WordImpress/Give-Snippet-Library/blob/4447a3c7e093a08a72eca7684f883feea2aa85a7/admin-functions/custom-currency.php

    
    function my_give_add_bitcoin_currency( $currencies ) {
    	$currencies['BTC'] = array(
    		'admin_label' => __( 'Bitcoin (BTC)', 'give' ),
    		'symbol'      => '฿',
    		'setting'     => array(
    			'currency_position'   => 'before',
    			'thousands_separator' => '.',
    			'decimal_separator'   => ',',
    			'number_decimals'     => 8,
    

    The currency function works for everything (changing labels, symbol etc..) but in wp admin always that error message prevents me from having 8 digits (defaults to 5).
    I searched in plugin code.. but without success.

    How to change that?
    Where to find this settings?

    Thank you very much!

    • This topic was modified 6 years, 3 months ago by tmf33. Reason: formatting
    • This topic was modified 6 years, 3 months ago by tmf33. Reason: formatting
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘ERROR? -> BTC Currency always defaults to 5 digits (even when setup 8 digits)’ is closed to new replies.