When opening a (razor) page containing a number with decimal places (set at 4 in this case) the comma separator is interpreted as a thousands separator which expands the number by it's decimal places as seen in this picture:


This is happening in the administration panel of the NopCommerce 3.8 development tree and only on a remote server. I don't see this issue with my debug build locally so this has probably something to do with server settings or even with underlying database (Microsoft SQL-Server). I'm not sure this is a NopCommerce issue though so I'm not limiting it to that tag.

I know that NopCommerce is forcing the en culture in the Administration panel because of how Kendo Grid works. Again, I'm not sure this has anything to do with the actual issue.

This issue also materializes in the fact that the text box doesn't allow the ',' character. i can only use '.'. Trying to save a number like '0.50' is terminated with the message:

The value '0.2' is not valid for ...

Related posts

Recent Viewed