Closed tobystokes closed 6 years ago
Thanks for the cheeky PR title and making the plugin friendlier for the rest of the world, @tobystokes! I considered a "default currency" setting for the plugin, but it seems just as silly to potentially display the wrong currency as it does to not have one at all. Hopefully statistics.ordersAmount will include a currency symbol at some point.
For if your not trading in dollar dollar bill y'all, this replaces the $ with relevant currency symbol, as provided by the orders response.
Note the customer API call doesn't actually indicate the currency for its statistics.ordersAmount. In theory you could set it to a recent order.currency value, but as snipcart does actually accept multiple currencies, not 100% sure this would always be true, and seemed better to indicate no symbol than the wrong one?