=== Design Cart Woo Dashboard ===
Contributors: giraffex
Tags: woocommerce, dashboard, ecommerce, reports, analytics
Requires at least: 6.5
Tested up to: 7.1
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

WooCommerce store dashboard with sales summaries, navigation shortcuts, and 30-day charts.

== Description ==

Design Cart Woo Dashboard replaces the default WordPress dashboard with a store cockpit for users who have the `manage_woocommerce` capability. Other users keep the standard dashboard.

**Features**

* Metric tiles: sales, orders, unique buyers, and average cart value
* Shortcuts to products, orders, categories, customers, coupons, reports, settings, and add product, filtered by user capabilities
* Three Chart.js charts plus an accessible daily data table
* Settings in the Design Cart interface: dashboard redirect, shortcut and chart visibility, and order statuses
* Local assets only: no CDN, telemetry, or outbound requests while viewing the dashboard

**How the numbers work**

All values cover 30 calendar days including today, based on the order created date and the WordPress timezone. Default statuses are processing and completed. Sales are gross amounts including shipping minus refunds; refunds are assigned to the order created day. Fully refunded orders with the refunded status are excluded by default. Average cart value is sales after refunds divided by the number of orders in the selected statuses.

Customers are unique buyer email addresses, including guests. If an email is missing, the account ID is used; if both are missing, the order counts as a separate buyer. This is not a count of registered accounts. Only the current store currency is included; amounts are not converted between currencies.

Statistics are cached for 5 minutes. Orders are loaded in batches of 100 through the WooCommerce CRUD API. The first open in a large store may take longer. The cache does not store emails or buyer IDs. Deactivating the plugin restores the default dashboard; settings remain in the database.

== Installation ==

1. Upload the `design-cart-woo-dashboard` folder to `/wp-content/plugins/`.
2. Activate WooCommerce, then activate Design Cart Woo Dashboard.
3. Open Dashboard → Store cockpit.
4. Configure the plugin under WooCommerce → Dashboard settings.

== Frequently Asked Questions ==

= Who sees the store dashboard? =

Users with the `manage_woocommerce` capability. Everyone else keeps the standard WordPress dashboard.

= Which orders are counted? =

Orders from the last 30 days in the selected statuses, in the current store currency. Refunds reduce sales on the day the order was created.

= Does the plugin load assets from a CDN? =

No. Chart.js and the Design Cart interface files are bundled with the plugin.

== Changelog ==

= 1.0.0 =
* Initial release: store dashboard, navigation tiles, 30-day charts, and status settings.

== Upgrade Notice ==

= 1.0.0 =
Initial release of the WooCommerce store dashboard.

== Credits ==

Interface by Paweł Nosko / Design Cart. Chart.js 4.4.4 is MIT licensed; the original notice is kept with the library, and the full license is in `assets/js/Chart.LICENSE.md`.
