=== User Who Last Viewed The Order ===
Contributors: ditsagency  
Donate link: https://dits.md  
Tags: woocommerce, orders, admin, user activity, order tracking  
Requires at least: 5.5  
Tested up to: 6.9  
Requires PHP: 7.2  
Stable tag: 1.0.3 
License: GPLv2 or later  
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Displays the user who last viewed a WooCommerce order in the admin panel, with timestamp.

== Description ==

**User Who Last Viewed The Order** is a lightweight admin tool for WooCommerce.

It adds a “Last viewed” column to the order list in your dashboard.  
This shows who last opened or previewed each order — including their username and the time they did it.

Perfect for multi-admin stores or support teams where multiple users process orders.

**Features:**
- Adds "Last viewed" column in WooCommerce → Orders
- Automatically logs the user and time when the order is opened
- Works with full order view and popup preview
- Uses AJAX to update without page reload
- Fully translatable (.pot/.po/.mo files included)

== Installation ==

1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install it via Plugins > Add New.  
2. Activate the plugin through the 'Plugins' menu in WordPress.  
3. Go to **WooCommerce → Orders** and view the new “Last viewed” column.

== Frequently Asked Questions ==

= Does this track customers? =
No. Only WordPress users with permission to edit orders.

= Will it slow down my site? =
No. The plugin is extremely lightweight and only works in the admin area.

= Can I use it with other WooCommerce admin plugins? =
Yes. It does not interfere with other functionality. 

== Screenshots ==

1. “Last viewed” column in WooCommerce admin order list

== Changelog ==

= 1.0.3 =
* Refactor: split code into separate files (includes/assets).
* Moved inline JS/CSS into dedicated files.

= 1.0.2 =
* Marked as tested up to WordPress 6.9.

= 1.0.1 =
* Minor improvements and code optimization.
* Updated internal version references.

= 1.0.0 =
* Initial release: tracks last admin user who viewed WooCommerce orders.

== Upgrade Notice ==

= 1.0.3 =
Refactor and cleanup (no functional changes).

= 1.0.2 =
HPOS compatibility fix and tested up to WordPress 6.9.

= 1.0.1 =
Minor improvements and optimizations.

= 1.0.0 =
First stable version.

== Privacy ==
This plugin does not collect or store any personal data.
