Automattic / wp-calypso

The JavaScript and API powered WordPress.com
https://developer.wordpress.com
GNU General Public License v2.0
12.42k stars 1.99k forks source link

Jetpack Stats > Store - display sales in USD even for orders in other currencies #73598

Open mxhassani opened 1 year ago

mxhassani commented 1 year ago

Quick summary

Under Jetpack > Stats > Store

There seems to be an issue linked to the currency, where it only matches the store currency but not the order currency.

In this case, the main currency is USD, but the shop allows for multi-currency orders.

There is a ¥1,700 order, the user is seeing $1,700 in stats instead ¥1,700 or equivalent in $:

image

The correct amount is shown under Analytics > Overview:

image

5966005-zd-woothemes

github-actions[bot] commented 1 year ago

Support References

This comment is automatically generated. Please do not edit it.

cuemarie commented 1 year ago

📌 SCRUBBING : RESULT - Replicated / Could Not Replicate / Uncertain

📌 FINDINGS/SCREENSHOTS/VIDEO

Screenshots/Recordings

Markup on 2023-04-11 at 16:07:24

Markup on 2023-04-11 at 16:08:04

📌 ACTIONS

cuemarie commented 1 year ago

One other quick note, WooCommerce Payments' documentation on Multi-Currency notes the following about Analytics:

All data within analytics will be converted back to the store’s base currency. There should be no changes to the reports or any of the other analytics screens. This means you will not be able to see individual breakdowns of orders made in different currencies. A column has been added to the Orders analytics report to show which currency a customer used to complete the order.

This might mean that the solution here would be to convert sales back to the store's base currency in Jetpack Stats too - however the current behavior is just converting the currency, but not the actual amount the sale was worth, so sales are incorrect.

jeherve commented 1 year ago

can you advise if this is a bug, or if we currently don't have support for multi-currency sales within Jetpack Stats' > Store? Thanks!

I'm afraid I'm not familiar with this part of Calypso, so I cannot really help there. @psealock may know more than me about this.

cuemarie commented 1 year ago

📌 ACTIONS