=== RamCode Fast Orders for WooCommerce ===
Contributors: ramindoroozeh
Tags: woocommerce, orders, performance, admin
Requires at least: 6.2
Tested up to: 7.0
Requires PHP: 7.4
Requires Plugins: woocommerce
Stable tag: 2.2.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A lightweight active-orders workspace and management command center for WooCommerce.

== Features ==

* Loads only active orders from the last 30 days.
* Supports standard WooCommerce active statuses and optional custom reservation statuses.
* Avoids loading the full historical order archive.
* Fetches only 21 records per request and displays 20.
* Lazy-loads line items only when the quick-detail dialog is opened.
* Exact search by order ID, phone number or email.
* Works with legacy order storage and HPOS.
* Modern responsive RTL interface with no JavaScript framework.
* Stage-aware card accents for faster visual scanning.
* Bulk status updates and reservation shipping.
* Quick private notes and print shortcuts.
* Aging alerts and optional new-order sound.
* Mobile-first warehouse, accounting and support modes.
* Full-screen mobile order sheet with a sticky action dock.
* Order and print links always open in a new tab.
* Native Windows/Chrome/Edge notifications for new orders while the page is open or in the background.
* Duplicate-notification protection shared across tabs.
* Auto-refreshes every 60 seconds while the page is visible.
* A separate lightweight 30-day management command center.
* Action queue with a suggested owner for accounting, support and warehouse.
* Daily trends, operational health and payment-gateway failure analysis.
* Full-screen monitor mode with five-minute refresh.
* Selectable 30, 60 or 90-day reporting window.
* Selected-period sales, current-month sales and a seven-day sales chart.
* Fast SQL aggregation for accurate high-volume 30/60/90-day comparisons.
* Sales comparison against the immediately preceding period.
* Two-minute report cache, automatically cleared after order changes.

== Installation ==

Upload the ZIP from Plugins > Add New > Upload Plugin, then activate it.
Open WooCommerce > سفارش‌های سریع for operations, or WooCommerce > مرکز فرمان RamCode for BI.

The plugin does not replace or modify WooCommerce's original Orders screen.

== Developer filters ==

`ramcfaor_cutoff_days` may reduce the window from 30 days. Values are always clamped between 1 and 30 days.

`ramcfaor_active_statuses` changes the statuses included in the active view.

== Changelog ==

= 2.2.0 =

* Replace short internal prefixes with the unique RAMCFAOR/ramcfaor prefix throughout declarations, globals, hooks, stored data, script handles and public JavaScript configuration.
* Rename the command-center admin slug and internal handles to use the plugin prefix.

= 2.1.5 =

* Add uncapped aggregate 30/60/90-day reporting for legacy WooCommerce order storage.
* Calculate real selected-period and previous-period sales from legacy order data.
* Add shipping-method trends for stores that use the WordPress posts order tables.

= 2.1.4 =

* Add accurate uncapped 30/60/90-day aggregate reporting for HPOS stores.
* Keep the operational Fast Orders workspace limited to the latest 30 days.
* Add shipping-method distribution and share trends for the selected report period.
* Add real previous-period sales comparisons.
* Prevent stale report responses when users switch date ranges quickly.
* Avoid instantiating thousands of WooCommerce order objects for HPOS reports.

= 2.1.3 =

* Fall back to the WooCommerce Orders API when the Analytics lookup table has no report data.
* Fix payment-gateway action calculations in fallback reports.
* Invalidate stale zero-result report caches after upgrading.

