grandnode2 icon indicating copy to clipboard operation
grandnode2 copied to clipboard

The Admin UI does not respect the shop's currency locale

Open attila-koteles opened this issue 4 years ago • 0 comments

The Admin UI (Dashboard, Orders, etc..) does not respect the shop's currency locale - if currency custom formatting is set

The appropriate currency is still working in the shop UI, so there is no problem there.
I believe this is because there is a default Culture set in the shop WorkContext (?) by the language or shop currency.

However when the same PriceFormatter service is running for the Admin it uses default culture with the custom formatting.

I have HUF set as currency, display locale hu-HU, with custom formatting: C0

In the shop I get a correct 3 980 Ft as formatted price.
In the admin UI this becomes $3,980

This is because the PriceFormatter does not seem to handle the display locale
when there is a custom formatting set.

I've sent in a pull request regarding this #152

attila-koteles avatar Oct 29 '21 09:10 attila-koteles