Using Euro currency, on the quick edit form the user sees a comma as a decimal separator (correct). But if they save a decimal value, it is rounded, because rounding occurs by default, and because the call to commerce_currency_decimal_to_amount strips the decimal part as it doesn't expect commas as a decimal separator.
This patch prepares the currency value and the rounding param accordingly.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | quick_edit.png | 24.95 KB | kruser |
| commerce_backoffice-comma-decimal-separator-0001-1.patch | 1.17 KB | MichaelP |
Comments
Comment #1
candelas commentedi was having this problem and the patch worked for me. thanks MichaelP, i was getting crazy because the prize changes!
Comment #2
rbosscher commentedThanks solved for me too
Comment #3
jsacksick commentedI'm not 100% sure about this patch, I decided to trust you since it's RTBC and I committed it (fdb576c)
Comment #5
kruser commentedI don't think this fixes the problem. In USD, if I click quick edit on a product that's 4,850.00, the editable price field keeps the comma. Upon being saved, it then displays the price as $4.00.