WOOCS - WooCommerce Currency Switcher

How to adapt woocommerce reports by date for currency switcher

WooCommerce Currency Switcher cant by default work with WooCommerce reports as there is no hooks there, and its not possible to plug-in there. But after some investigations of woocommerce code I found 1 way how to adapt reports for orders with different currencies (works only for Reports->Orders->”Sales by date”):

  • open file wp-content\plugins\woocommerce\includes\admin\reports\class-wc-admin-report.php
  • find there public function get_order_report_data
  • on the same end of the function before code return $result; drop code:
  • open functions.php file of your current wp theme and on the same bottom of the file drop the next code:



WOOT - WooCommerce Active Products Tables