How to change thousands and decimal separator

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #660123
    Joke Scholte
    Participant

    In some countries, like the Netherlands, thousands and decimals separators are the other way round, like so: 1.250,00. Where/how can I change this?
    Thanks!

    #660656
    J. Davis
    Keymaster

    Hi Joke,

    Thank you for your notification. We’ll investigate this question and will provide some solution further. We’ll notify you here once we get any news on this.

    best regards,
    John

    #691623
    Willi Harder
    Participant

    Hello! Is there news or a workaround to this question? In Germany it’s also the other way around.

    Thank you!
    Willi

    #691758
    J. Davis
    Keymaster

    Hi Will,

    Till there is no option to manage it within dashboard try additing the codes below to functions.php file of the theme
    Here is code to change the thousand separator:

    function theme_default_option_mphb_thousand_separator() {
        return '.';
    }
    add_filter( 'default_option_mphb_thousand_separator', 'theme_default_option_mphb_thousand_separator' ); 

    Here is code to change the decimal separator:

    function theme_default_option_mphb_decimals_separator() {
        return ',';
    }
    add_filter( 'default_option_mphb_decimals_separator', 'theme_default_option_mphb_decimals_separator' ); 

    best regards,
    John

    #691998
    Willi Harder
    Participant

    Works like a charm, thanks a lot!

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.