Viewing 5 replies - 1 through 5 (of 5 total)
  • Thread Starter qshaheer

    (@qshaheer)

    does anybody know?

    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 4 years, 10 months ago by playdiune.
    Plugin Contributor Kshirod Patel

    (@kshirod-patel)

    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.

    Thread Starter qshaheer

    (@qshaheer)

    Thank you all

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Currency’ is closed to new replies.