I think this might be related to i18n. My user is set to German, the base currency is EUR.
When working with Money fields, usually we see a "," as decimal separator in the CP. The perItemDiscount though works weirdly for us. When I enter a number with ",", it works fine. Lets say "12,5" But when I reopen the discount rule, the field says "12.5". Which is theroretically the thousand separator. When I resave the field, the field says now "125", which is also used as a value. We tested only this field, maybe others are also affected.
In the same dialog "CMD/Ctrl + S" ist not working. After saving like this, the rule is left back to the overview.
Steps to reproduce
Create a discount rule
Expected behavior
The discount value should be loaded with "," in our case
What happened?
Description
I think this might be related to i18n. My user is set to German, the base currency is EUR.
When working with Money fields, usually we see a "," as decimal separator in the CP. The
perItemDiscount
though works weirdly for us. When I enter a number with ",", it works fine. Lets say "12,5" But when I reopen the discount rule, the field says "12.5". Which is theroretically the thousand separator. When I resave the field, the field says now "125", which is also used as a value. We tested only this field, maybe others are also affected.In the same dialog "CMD/Ctrl + S" ist not working. After saving like this, the rule is left back to the overview.
Steps to reproduce
Expected behavior
Actual behavior
Craft CMS version
4.2.1.1
Craft Commerce version
4.1.0
PHP version
8.1
Operating system and version
MacOS, Debian Docker
Database type and version
MariaDB 10.5
Image driver and version
-
Installed plugins and versions