I found the solution in RestroPress documentation.
If you want to include your Own Currency, then you can use the following codes and place it your active theme’s function.php file:
function rpress_custom_currencies( $currencies ) {
$currencies['₭'] = __( 'Lao Kip', 'restropress' );
return $currencies;
}
add_filter('rpress_currencies', 'rpress_custom_currencies');
If you want to Remove the Decimal from your Currency, you can use this code in your active theme’s functions.php file:
add_filter( ‘rpress_currency_decimal_count’, ‘rpress_remove_decimal’ ); function rpress_remove_decimal( $decimals ) { $decimals = 0; return $decimals; }
Do not put in the theme functions because those changes will be lost when the theme is updated. Use a child theme or Create a MU Plugin and put those changes there.
-
This reply was modified 6 years ago by
playdiune.
Hello,
@qshaheer hope you added your own currency by using this code in your active child theme functions.php file.
@botwan thank you for sharing this code.
@playdiune thank you for this suggestion.