Wp-calypso: Wrong currency in notifications when using WooCommerce

Created on 23 May 2018  路  4Comments  路  Source: Automattic/wp-calypso

Steps to reproduce

  1. Starting at URL: kuvela.org
  2. Currency set to ZAR
  3. New order comes in and uses $ rather than ZAR or R

Screenshot / Video

currency

Store [Type] Bug

All 4 comments

Thanks for the bug report @jobthomas - I'll look into getting this fixed up.

So some good news and some bad news - good news is we indeed are sync'ing the order currency via Jetpack, so we have access to that value. The bad news is the utility we are using to format the currency for display in the notif does not have a full list of currencies ( yes it is a static array of currency data ) - and it defaults to showing $ when a currency code does not exist in the list - such as ZAR.

It looks like we could lean on WP_CLDR to fix the issue though. I'll give it a try, and see if that will do the trick.

Proposed fix D13817-code

Fix deployed in r177009-wpcom

Was this page helpful?
0 / 5 - 0 ratings