Decimal separator: point or comma
-
Hello Adrian,
first off, awesome work! I really like your plugin, I am using it to add an optional donation in the checkout process.
I have setup fixed values, and when you click on “custom value”, you can put in decimal values only if you use a point as decimal separator. Here in Germany, we use a comma instead, and I expect my customers to do exactly that.
However, the comma is then simply removed/ignored, and the input value is for example 350 € instead of 3.50 €.
Could you modify your plugin to handle this correctly? I am thinking of these possible solutions:
– accepting point or comma as decimal separator
– querying the default decimal separator from WooCommerce (if possible)
– including an option in your plugin settingsThanks!
Florian
- The topic ‘Decimal separator: point or comma’ is closed to new replies.