Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking How to change thousands and decimal separator
- This topic has 6 replies, 2 voices, and was last updated 2 years, 8 months ago by J. Davis.
- AuthorPosts
- March 21, 2018 at 10:48 pm #660123Joke ScholteParticipant
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!March 23, 2018 at 4:29 pm #660656J. DavisKeymasterHi 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,
JohnJune 22, 2018 at 12:21 pm #691623Willi HarderParticipantHello! Is there news or a workaround to this question? In Germany it’s also the other way around.
Thank you!
WilliJune 22, 2018 at 3:19 pm #691758J. DavisKeymasterHi 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,
JohnJune 23, 2018 at 3:55 pm #691998Willi HarderParticipantWorks like a charm, thanks a lot!
March 23, 2022 at 12:01 am #1278158Anita husevågParticipantHas this changed? I cant find this string in the functions.php
March 23, 2022 at 1:01 pm #1278764J. DavisKeymasterHi Anita,
You need to add the code from this reply of this topic. Let me know if it is helpful.
best regards,
J. Davis - AuthorPosts
- You must be logged in to reply to this topic.