Indian Currency

Home Forums User Registration Indian Currency

This topic contains 8 replies, has 3 voices, and was last updated by  sanjeev3 1 year, 1 month ago.

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #3551

    Chethan GS
    Participant

    How to activate the Indian currency in the User registration form?

    #3552

    sanjeev3
    Member

    Hello Chethan,

    Can you please elaborate a bit. Where do you mean? What is the purpose? Do you have Payments add-on installed?

    Regards,
    WPEverest Support

    #3556

    Chethan GS
    Participant

    Yes, we have purchased the add-on (plus $89)..
    In the settings of payment in User-registration, I cannot see INR (Indian Rupees) as an amount.
    Link for screenshot:
    chethangs.in/files2/ftp_tmp/aas.png

    #3557

    sanjeev3
    Member

    Hello Chethan,

    We don’t have automatic option for this. However, you can use the provided filter user_registration_payments_currencies. Please paste the following to your child theme’s function.php.

    add_filter('user_registration_payments_currencies', 'ur_add_indian_currency');
    function ur_add_indian_currency( $currencies ) {
    
       $indian_currency =  array( 'INR' =>   array(
    			'name'                => esc_html__( 'Indian Ruppees', 'user-registration-payments' ),
    			'symbol'              => '',
    			'symbol_pos'          => 'left',
    			'thousands_separator' => ',',
    			'decimal_separator'   => '.',
    			'decimals'            => 2,
    		) );
    
        return array_merge( $currencies, $indian_currency );
    }

    Let me know if you have any confusion, I’ll get back to you. We will add other missed supported countries soon. Please stay updated!

    Regards,
    WPEverest Support

    #3561

    Chethan GS
    Participant

    Sorry!
    I could not get the currency in the list…
    I’ve added in both child and normal theme functions…

    #3562

    sanjeev3
    Member

    Hello again,

    That should work. Make sure to insert the provided code in your selected child theme’s functions.php and check the currency at the bottom of the list. If you are not still getting it work, please contact us from here: help@wpeverest.com with screenshots of selected theme and added code, we may require further more information.

    Thank You!

    #4805

    Tyler Franko
    Participant

    I need to have the currency in Pounds Sterling £. Can you please let me know how to do this? I do not need in USD.

    #4806

    Tyler Franko
    Participant

    add_filter(‘user_registration_payments_currencies’, ‘ur_add_uk_currency’);
    function ur_add_indian_currency( $currencies ) {

    $uk_currency = array( ‘INR’ => array(
    ‘name’ => esc_html__( ‘Pounds Sterling’, ‘user-registration-payments’ ),
    ‘symbol’ => ‘£’,
    ‘symbol_pos’ => ‘left’,
    ‘thousands_separator’ => ‘,’,
    ‘decimal_separator’ => ‘.’,
    ‘decimals’ => 2,
    ) );

    return array_merge( $currencies, $uk_currency );
    }

    #4808

    sanjeev3
    Member

    Hello Tyler Franko,

    We have automatic option for pound sterling. You don’t need to add any codes for this. Navigate to User Registration->Settings->Payments->Currency. Select Pound Sterling.

    Screenshot: https://ibb.co/iFe0B9

    Let us know if you are referring to any other currencies that is not available in the list.

    Regards,
    WPEverest Support

Viewing 9 posts - 1 through 9 (of 9 total)

You must be logged in to reply to this topic.