matomo-org / matomo-org/matomo-for-wordpress

Support a different currency per order (with WooCommerce integration)

Open
#1,002 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Enhancement
Dominant language
PHP
Stars
145
Forks
35
Avg merge
2d 2h
Merged PRs (30d)
6

Description

Hi,
I use the "WooCommerce Price Based on Country" plugin where the currency is changed to the users local currency. This is very convenient and seamless for the visitors to my shop. However, when I look at the Matomo E-Commerce report, the orders are only shown in the base currency which is SEK in my shop since I am located in Sweden. However, I get orders in USD, Euro, UK Pounds. And those are reflected as 100 sek instead of 100 USD or Euro etc.
Is there a way that the e-commerce report can show accurate data and use the standard currency conversion from Yahoo and use the order currency code from the orders? In WooCommerce reporting, the sales report shows orders correctly in the order currency. Also, the standard WooCommerce revenue report shows the sales report in SEK by converting orders from order currencies to the shop currency using some standard currency rate (I guess from the currency rate I set in the currency plugin or some standard rate online.
Please fix this issue as the e-commerce report is pretty unusable. All other reports are excellent and gives so much of insights.
Best regards,
Vimal.
Screenshot 2024-01-09 at 14 04 02
Screenshot 2024-01-09 at 14 04 22
Screenshot 2024-01-09 at 14 04 48
Screenshot 2024-01-09 at 14 05 41
Screenshot 2024-01-09 at 14 06 55
Screenshot 2024-01-09 at 14 07 52

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing how WooCommerce order currency data reaches the Matomo E-Commerce report, then compare its values with WooCommerce's currency-aware sales report. Verify the expected conversion or currency-code behavior from the issue; done means orders in USD, EUR, and GBP are represented accurately rather than as base-currency SEK.

Written by the indexing model from the issue text.

Assessment

Tech stack
php, wordpress
Domain
analytics, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.