=== Customer Activity for WooCommerce ===
Contributors: aisimpleplugin
Tags: woocommerce, customers, activity, dashboard, cart
Requires at least: 6.0
Tested up to: 7.0
WC tested up to: 10.7
Requires PHP: 7.4
Stable tag: 1.0.0
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Track WooCommerce customers with active carts directly from your WordPress admin dashboard.

== Description ==

Customer Activity helps WooCommerce store owners quickly see which customers currently have products in their cart and when they were last active.

The plugin adds:

* A dashboard widget for quick monitoring
* A dedicated admin page with a full activity table
* Online/offline detection
* Cart item and cart total tracking
* Flexible role-based tracking
* Configurable display columns
* Automatic cleanup of old tracking data

Perfect for B2B stores, wholesale shops, sales teams, and customer follow-up workflows.

== Features ==

* Track customers with active WooCommerce carts
* See last customer activity time
* Detect online/offline customer status
* Display cart item count and cart total
* Dashboard widget with customizable fields
* Full activity page in wp-admin
* Track only selected user roles
* Exclude WordPress core roles automatically
* Automatic cleanup of inactive tracking data
* Lightweight and simple configuration

== Dashboard Widget ==

The dashboard widget gives a quick overview of customers currently active with products in their cart.

Available fields:

* Company
* Name
* Last activity
* Online status
* Cart items
* Cart total

== Activity Page ==

The activity page includes:

* Customer profile links
* Activity timestamps
* Online indicators
* Cart information
* Remove action

== Online Detection ==

Customers are considered online if they were active within the configured time window.

== Role Tracking ==

Track only the roles you want.

Examples:

* customer
* wholesale_customer
* b2b_customer
* distributor

WordPress core roles are automatically excluded.

== Automatic Cleanup ==

Old tracking data can be automatically removed after a configurable number of days.

Set cleanup to 0 to disable cleanup.

== Installation ==

1. Upload the plugin to /wp-content/plugins/
2. Activate the plugin
3. Make sure WooCommerce is active
4. Open Customer Activity in wp-admin
5. Configure your settings

== Frequently Asked Questions ==

= Does this plugin require WooCommerce? =

Yes.

= Does the plugin track guests? =

No. Only logged-in users are tracked.

= Can I track custom B2B roles? =

Yes.

= Can administrators be tracked? =

No.

= Can I disable automatic cleanup? =

Yes. Set cleanup days to 0.

== Screenshots ==

1. Dashboard widget
2. Activity table
3. Settings page


== Changelog ==

= 1.0.0 =

* Initial release
* Dashboard widget
* Full activity page
* Online detection
* Cart tracking
* Role tracking
* Automatic cleanup
* Configurable columns

== Upgrade Notice ==

= 1.0.0 =

Initial release.