# Real-Time Cart Tracking For WooCommerce
Contributors: rockyvora  
Tags: woocommerce, real-time cart tracking, user cart, eCommerce, analytics  
Requires at least: 5.6  
Tested up to: 6.7  
Requires PHP: 7.2  
Stable tag: 1.3  
License: GPL-2.0+  
License URI: https://www.gnu.org/licenses/gpl-2.0.html  


## Description
The **Real-Time Cart Tracking For WooCommerce** plugin helps store owners monitor active shopping sessions in real time. Track potential buyers, gain insights into cart activity, and optimize your store’s conversion rate—all from an intuitive admin dashboard.

## Features
- Track live cart activity for logged-in users.
- View customer details including name, email, country, and cart contents.
- Auto-remove abandoned carts when users leave.
- Admin panel with search and pagination support.
- Optimized performance using WordPress caching.

## Installation
1. Download the plugin ZIP file.
2. Go to your WordPress dashboard.
3. Navigate to **Plugins > Add New**.
4. Click **Upload Plugin** and select the ZIP file.
5. Click **Install Now** and activate the plugin.

## Usage
1. After activation, go to **Real Time Cart Insights** in the WordPress admin menu.
2. View the list of active carts with user details and cart contents.
3. Use the **Refresh** button to update cart data.
4. Search for users by email, first name, or last name.

## How It Works
- The plugin captures cart data when a user adds/removes items.
- Cart data is stored in a custom database table (`wp_reat_time_cart`).
- Entries automatically update when users modify their cart.
- Empty carts are deleted to keep data clean.

## Hooks & Actions
The plugin uses the following WooCommerce hooks:
- `woocommerce_cart_updated` – Saves cart data when items are added/updated.
- `woocommerce_after_cart_item_quantity_update` – Updates cart quantity.
- `woocommerce_removed_cart_item` – Removes items from tracking.
- `woocommerce_add_to_cart` – Captures new cart additions.



## Uninstalling
To remove the plugin and all stored data:
1. Deactivate the plugin from **Plugins > Installed Plugins**.
2. Delete the plugin.
3. (Optional) Remove the custom database table: `wp_reat_time_cart`.

## License
This plugin is licensed under the GPL-2.0+ License.

## Changelog
### Version 1.3
- Initial release with real-time cart tracking
- Admin dashboard with live updates
- Search & pagination support
- Auto-remove empty carts

