In Switzerland it's common to use ' as the separator for the thousands and either , or . for the decimal part (, for "normal" numbers and "." for currency).
Is there a way to add a third option for me (or change an existing one) that would work like this:
Please add this as a feature suggestion on this page, and it will be added on our "to-do" list.
Until it is implemented in the plugin, you can go to file ../wp-content/plugins/wpdatatables/templates/admin/settings/tabs/main_plugin_settings.php and on line 132 you will see this:
So, after option 2 just hit enter and add option 3:
<option value="3">15'000.00</option>
So it looks like this:
When you save the file and refresh the settings page, you will see this new option:
I would like to know if Marcial could fix the problem. I tired as Aleksandar suggested but without any results. I mean the option is available in the settings but has no effects on the table nor in the Number slider in the filter section.
Sorry, I didn't want to modify the code, so I haven't tried the suggestion yet. Back then I also couldn't imagine how just changing the option would have any impact on the site in general. I think there is something missing here.
Hi there
You let us chose from two number formats:
15,000.00 or 15.000,00
In Switzerland it's common to use ' as the separator for the thousands and either , or . for the decimal part (, for "normal" numbers and "." for currency).
Is there a way to add a third option for me (or change an existing one) that would work like this:
15'000.00
Thanks for your help.
Source: https://en.wikipedia.org/wiki/Decimal_separator --> scroll down to "Examples of use".
Hello Marcial.
Please add this as a feature suggestion on this page, and it will be added on our "to-do" list.
Until it is implemented in the plugin, you can go to file ../wp-content/plugins/wpdatatables/templates/admin/settings/tabs/main_plugin_settings.php and on line 132 you will see this:
So, after option 2 just hit enter and add option 3:
So it looks like this:
When you save the file and refresh the settings page, you will see this new option:
I hope this helps.
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables
Hi there.
I would like to know if Marcial could fix the problem. I tired as Aleksandar suggested but without any results. I mean the option is available in the settings but has no effects on the table nor in the Number slider in the filter section.
Hi Antonio
Sorry, I didn't want to modify the code, so I haven't tried the suggestion yet. Back then I also couldn't imagine how just changing the option would have any impact on the site in general. I think there is something missing here.
Best,
Hello all.
That is correct, this will not work on all tables (if any), and it was a bad suggestion (sorry about that).
The thing about adding a new number format is that it's going through a lot of files, from filtering, through formulas and calculation functions.
It is not that easy to add a new number format so please feel free to add it as a feature suggestion on this page
Kind Regards,
Aleksandar Vuković
[email protected]
Rate my support
wpDataTables: FAQ | Facebook | Twitter | Instagram | Front-end and back-end demo | Docs
Amelia: FAQ | Facebook | Twitter | Instagram | Amelia demo sites | Docs | Discord Community
You can try wpDataTables add-ons before purchasing on these sandbox sites:
Powerful Filters | Gravity Forms Integration for wpDataTables | Formidable Forms Integration for wpDataTables | Master-Detail Tables