=== Payment Method Order Reporting (PMOR) for WooCommerce ===
Contributors: alexhalfborg
Tags: woocommerce, reports, orders, payment methods, analytics
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.2
Stable tag: 1.0.3
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html

Advanced reporting for WooCommerce orders with filtering by payment method and date ranges.

== Description ==

Payment Method Order Reporting for WooCommerce provides detailed insights into your WooCommerce orders, allowing you to filter by payment method and date ranges.

= Features =

* View orders filtered by payment method
* Filter by predefined date ranges (last 7 days, last 30 days, last 90 days)
* Custom date range selection
* Summary statistics showing total orders and revenue
* Export reports to CSV
* Extensible architecture for adding more report types

= Requirements =

* WordPress 6.2 or higher
* WooCommerce 9.0.0 or higher
* PHP 7.2 or higher

== Installation ==

1. Upload the `pmor-reports` folder to the `/wp-content/plugins/` directory
2. Activate the plugin through the 'Plugins' menu in WordPress
3. Go to WooCommerce > PMOR Reports to view the reports

== Frequently Asked Questions ==

= What payment methods are supported? =

The plugin automatically detects all payment methods used in your WooCommerce orders within the selected date range.

= Can I export the reports? =

Yes, you can export any report to CSV format by clicking the "Export CSV" button.

== Screenshots ==

1. Order report by payment method
2. Date range and payment method filters

== Changelog ==

= 1.0.3 =
* Compliance with the current WordPress.org Plugin Check requirements: hardened output escaping in the CSV exporter and prepared-SQL handling for order queries (now using the %i identifier placeholder for the HPOS orders table)
* Refreshed "Tested up to" for the current WordPress release
* Raised the minimum WordPress version to 6.2 (required for the %i placeholder). No functional changes to reports

= 1.0.2 =
* Fixed date-range filtering on stores using High-Performance Order Storage (HPOS) in non-UTC timezones - order lists, summary totals, and CSV exports now match the store's local dates and are consistent with legacy order storage
* Fixed the class autoloader so report interfaces resolve by naming convention, allowing third-party reports to autoload without manual includes
* Made the "All Payment Methods" filter label translatable

= 1.0.1 =
* Fixed HPOS (High-Performance Order Storage) compatibility - plugin now correctly queries orders from WooCommerce's new order tables when HPOS is enabled

= 1.0.0 =
* Initial release

== Upgrade Notice ==

= 1.0.3 =
Maintenance release for WordPress.org Plugin Check compliance. Requires WordPress 6.2 or higher. No changes to report output.

= 1.0.2 =
Fixes date-range filtering on HPOS stores in non-UTC timezones. If your reports or CSV exports were showing orders from the wrong day, update.

= 1.0.1 =
Important fix for HPOS compatibility. If you're using WooCommerce's High-Performance Order Storage and not seeing recent orders, update immediately.

= 1.0.0 =
Initial release
