Reply To: Indian Currency

Home Forums User Registration Indian Currency Reply To: Indian Currency

#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