How to change thousands and decimal separator

Viewing 7 posts - 1 through 7 (of 7 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!

    #1278158
    Anita husevåg
    Participant

    Has this changed? I cant find this string in the functions.php

    #1278764
    J. Davis
    Keymaster

    Hi Anita,

    You need to add the code from this reply of this topic. Let me know if it is helpful.

    best regards,
    J. Davis

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